Class: Tane::Commands::Refresh

Inherits:
Base
  • Object
show all
Defined in:
lib/tane/commands/refresh.rb

Class Method Summary collapse

Methods inherited from Base

fire

Methods included from Helpers

included

Class Method Details

.help_textObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/tane/commands/refresh.rb', line 14

def help_text
  <<-EOL
Usage:

tane refresh

Updates the Cloudfuji environment for the local application from the
latest settings from the Cloudfuji server.
EOL
end

.process(args) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/tane/commands/refresh.rb', line 4

def process(args)
  if in_rails_dir?
    Tane::Helpers::Init.update_app
  else
    term.say("You have to be in the local rails app's root directory when running `tane update`")
    
    exit 1
  end
end