Class: Deployer::BaseDeployer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @options = options

  @stage_path = File.join(Eh::Settings.current.stages_dir, "#{options[:stage]}.yml")
  @stage = Deployer::Stage.load(options[:stage], stage_path)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



2
3
4
# File 'lib/deployer/base_deployer.rb', line 2

def options
  @options
end

#stageObject (readonly)

Returns the value of attribute stage.



2
3
4
# File 'lib/deployer/base_deployer.rb', line 2

def stage
  @stage
end

#stage_pathObject (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