Class: Engineyard::Local::Command::Rails

Inherits:
Base show all
Defined in:
lib/engineyard-local/command/rails.rb

Instance Attribute Summary

Attributes inherited from Base

#env, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Vagrant::Command::Base

#cookbook_status, #initialize

Methods included from Helpers

#insert_linebreaks, #merge_run_options, #run

Constructor Details

This class inherits a constructor from Engineyard::Local::Command::Base

Instance Method Details

#exec(*command_args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/engineyard-local/command/rails.rb', line 5

def exec(*command_args)
  scoped_options = options

  stack = Vagrant::Action::Builder.new do
    use Middleware::Rails::Install, "eylocal.rails.version" => scoped_options["version"]
    use Middleware::Rails::Command, "eylocal.rails.command_args" => command_args
  end

  run stack
end