Class: Yolo::Deployment::BaseDeployer

Inherits:
Object
  • Object
show all
Defined in:
lib/yolo/deployment/base_deployer.rb

Overview

The Deployment super class

Author:

  • Alex Fish

Direct Known Subclasses

OTA, TestFlight

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseDeployer

Returns a new Deployer instance



19
20
21
# File 'lib/yolo/deployment/base_deployer.rb', line 19

def initialize
  self.url = Yolo::Config::Settings.instance.deploy_url
end

Instance Attribute Details

#package_pathObject

The path to the [packge to deploy]



13
14
15
# File 'lib/yolo/deployment/base_deployer.rb', line 13

def package_path
  @package_path
end

#urlObject

The deployer’s url



11
12
13
# File 'lib/yolo/deployment/base_deployer.rb', line 11

def url
  @url
end

Instance Method Details

#deploy(package_path, opts = {}, &block) ⇒ Object

Deploys the package, all deployer subclasses must implement this method

Parameters:

  • package_path (String)

    A full path to the package to deploy

  • opts (Hash) (defaults to: {})

    A hash of deployment options

  • block (Block)

    Block fired on completing



29
30
# File 'lib/yolo/deployment/base_deployer.rb', line 29

def deploy(package_path, opts={}, &block)
end