Method: Tane::Commands::Init.process

Defined in:
lib/tane/commands/init.rb

.process(args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/tane/commands/init.rb', line 4

def process(args)
  verbose_say("authenticating you...")
  authenticate_user
  verbose_say("done!")
  if in_rails_dir?
    verbose_say("In a rails directory, tane initializing...")
    Tane::Helpers::Init.initialize_app
    verbose_say("finished initializing!")
  else
    term.say("You have to be in the local rails app's root directory when running `tane init`")
    exit 1
  end
end