Class: Dynosaur::Process::Heroku
- Inherits:
-
Dynosaur::Process
- Object
- Dynosaur::Process
- Dynosaur::Process::Heroku
- Defined in:
- lib/dynosaur/process/heroku.rb,
lib/dynosaur/process/heroku/finder.rb
Defined Under Namespace
Modules: DeprecatedSize, Size Classes: Finder
Instance Method Summary collapse
Methods inherited from Dynosaur::Process
Constructor Details
This class inherits a constructor from Dynosaur::Process
Instance Method Details
#start ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/dynosaur/process/heroku.rb', line 24 def start app_name = Dynosaur::Client::HerokuClient.app_name client = Dynosaur::Client::HerokuClient.client create_opts = { command: rake_command.to_s, attach: false } create_opts[:attach] = attach if attach create_opts[:size] = size if size response = client.dyno.create(app_name, create_opts) response['name'] end |