class Dynosaur::Process::Heroku

Attributes

attach[R]
size[R]

Public Instance Methods

start() click to toggle source
# 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

Private Instance Methods

after_initialize(opts) click to toggle source
# File lib/dynosaur/process/heroku.rb, line 38
def after_initialize(opts)
  @size = opts[:size]
  @attach = opts[:attach]
end