Class: Agilib::Composer::Command
- Inherits:
-
Thor
- Object
- Thor
- Agilib::Composer::Command
- Includes:
- Thor::Actions
- Defined in:
- lib/agilib/composer/command.rb
Instance Method Summary collapse
Instance Method Details
#composer(name) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/agilib/composer/command.rb', line 14 def composer(name) Agilib::Composer. = # Instala uma aplicação Rails system("rails new #{name} --skip-bundle --skip-test-unit -d mysql -m #{Agilib::Composer.template_runner}") end |
#setup ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/agilib/composer/command.rb', line 22 def setup() say("\n\nInstalando RVM\n\n\n") system("curl -sSL https://get.rvm.io | bash -s stable") system("source ~/.profile") say("\n\nInstalando Ruby\n\n") system("rvm install 2.1.0") say("\n\nInstando a gem Bundler") system("gem install bundler") end |