Class: Yolo::Deployment::BaseDeployer
- Inherits:
-
Object
- Object
- Yolo::Deployment::BaseDeployer
- Defined in:
- lib/yolo/deployment/base_deployer.rb
Overview
The Deployment super class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#package_path ⇒ Object
The path to the [packge to deploy].
-
#url ⇒ Object
The deployer’s url.
Instance Method Summary collapse
-
#deploy(package_path, opts = {}, &block) ⇒ Object
Deploys the package, all deployer subclasses must implement this method.
-
#initialize ⇒ BaseDeployer
constructor
Returns a new Deployer instance.
Constructor Details
#initialize ⇒ BaseDeployer
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_path ⇒ Object
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 |
#url ⇒ Object
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
29 30 |
# File 'lib/yolo/deployment/base_deployer.rb', line 29 def deploy(package_path, opts={}, &block) end |