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.



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

def initialize(options = {})
  super

  self.target_file = options[:into]
end

Instance Method Details

#callObject



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

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