Class: Deployer::BaseDeployer
- Inherits:
-
Object
- Object
- Deployer::BaseDeployer
- Defined in:
- lib/deployer/base_deployer.rb
Direct Known Subclasses
ConfigDeployer, ConsoleDeployer, GoDeployer, MuleDeployer, RubyDeployer
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
-
#stage_path ⇒ Object
readonly
Returns the value of attribute stage_path.
Instance Method Summary collapse
-
#initialize(options) ⇒ BaseDeployer
constructor
A new instance of BaseDeployer.
Constructor Details
#initialize(options) ⇒ BaseDeployer
Returns a new instance of BaseDeployer.
4 5 6 7 8 9 |
# File 'lib/deployer/base_deployer.rb', line 4 def initialize() = @stage_path = File.join(Eh::Settings.current.stages_dir, "#{options[:stage]}.yml") @stage = Deployer::Stage.load([:stage], stage_path) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/deployer/base_deployer.rb', line 2 def end |
#stage ⇒ Object (readonly)
Returns the value of attribute stage.
2 3 4 |
# File 'lib/deployer/base_deployer.rb', line 2 def stage @stage end |
#stage_path ⇒ Object (readonly)
Returns the value of attribute stage_path.
2 3 4 |
# File 'lib/deployer/base_deployer.rb', line 2 def stage_path @stage_path end |