Class: Tane::Commands::Init
Class Method Summary collapse
Methods inherited from Base
Methods included from Helpers
Class Method Details
.help_text ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/tane/commands/init.rb', line 14 def help_text <<-EOL Usage: tane init Creates a `.bushido` directory within the directory of the rails application. That holds all the config that enables you to run applications and commands in a Bushido environment. It also deploys a development application on Bushido that allows your local application to use resources on the Bushido platform. EOL end |
.process(args) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/tane/commands/init.rb', line 4 def process(args) authenticate_user if in_rails_dir? Tane::Helpers::Init.initialize_app else term.say("You have to be in the local rails app's root directory when running `tane init`") exit 1 end end |