Class: Duple::HerokuRunner
- Inherits:
-
Object
- Object
- Duple::HerokuRunner
- Defined in:
- lib/duple/heroku_runner.rb
Overview
Decorates a Duple::Runner instance with helper methods for executing Heroku commands.
Instance Method Summary collapse
- #capture(appname, args, tail = nil) ⇒ Object
-
#initialize(runner) ⇒ HerokuRunner
constructor
A new instance of HerokuRunner.
- #run(appname, args, tail = nil) ⇒ Object
Constructor Details
#initialize(runner) ⇒ HerokuRunner
Returns a new instance of HerokuRunner.
6 7 8 |
# File 'lib/duple/heroku_runner.rb', line 6 def initialize(runner) @runner = runner end |
Instance Method Details
#capture(appname, args, tail = nil) ⇒ Object
14 15 16 |
# File 'lib/duple/heroku_runner.rb', line 14 def capture(appname, args, tail = nil) @runner.capture(heroku_command(appname, args, tail)) end |
#run(appname, args, tail = nil) ⇒ Object
10 11 12 |
# File 'lib/duple/heroku_runner.rb', line 10 def run(appname, args, tail = nil) @runner.run(heroku_command(appname, args, tail)) end |