Class: Chamber::Commands::Heroku::Pull
- Includes:
- Chamber::Commands::Heroku
- Defined in:
- lib/chamber/commands/heroku/pull.rb
Instance Attribute Summary collapse
-
#target_file ⇒ Object
Returns the value of attribute target_file.
Attributes inherited from Base
#chamber, #dry_run, #rootpath, #shell
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ Pull
constructor
A new instance of Pull.
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Pull
14 15 16 17 18 |
# File 'lib/chamber/commands/heroku/pull.rb', line 14 def initialize( = {}) super self.target_file = [:into] end |
Instance Attribute Details
#target_file ⇒ Object
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
#call ⇒ Object
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 |