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

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

Instance Method Summary collapse

Methods inherited from Base

call

Constructor Details

#initialize(options = {}) ⇒ Pull

Returns a new instance of Pull.



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

def initialize(options = {})
  super

  self.target_file = options[:into]
end

Instance Method Details

#callObject



17
18
19
20
21
22
23
# File 'lib/chamber/commands/heroku/pull.rb', line 17

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