Class: Chamber::Commands::Heroku::Pull

Inherits:
Base
  • Object
show all
Includes:
Chamber::Commands::Heroku
Defined in:
lib/chamber/commands/heroku/pull.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#chamber, #dry_run, #rootpath, #shell

Instance Method Summary collapse

Methods inherited from Base

call

Constructor Details

#initialize(options = {}) ⇒ Pull



14
15
16
17
18
# File 'lib/chamber/commands/heroku/pull.rb', line 14

def initialize(options = {})
  super

  self.target_file = options[:into]
end

Instance Attribute Details

#target_fileObject

Returns the value of attribute target_file.



12
13
14
# File 'lib/chamber/commands/heroku/pull.rb', line 12

def target_file
  @target_file
end

Instance Method Details

#callObject



20
21
22
23
24
25
26
# File 'lib/chamber/commands/heroku/pull.rb', line 20

def call
  if target_file
    shell.create_file target_file, configuration
  else
    configuration
  end
end