Module: Apprunway::SDK

Extended by:
SDK
Included in:
SDK
Defined in:
lib/apprunway.rb

Instance Method Summary collapse

Instance Method Details

#cmd(str = '') ⇒ Object



67
68
69
# File 'lib/apprunway.rb', line 67

def cmd(str = '')
  system "#{dir}bin/appcfg.sh #{str}"
end

#default_dirObject



63
64
65
# File 'lib/apprunway.rb', line 63

def default_dir
  "~/.appengine-java-sdk-1.2.1/"
end

#deployObject



74
75
76
# File 'lib/apprunway.rb', line 74

def deploy
  cmd "update ./tmp/war"
end

#dirObject



59
60
61
# File 'lib/apprunway.rb', line 59

def dir
  File.join(ENV['APPENGINE_JAVA_SDK_INSTALL'] || default_dir, '')
end

#installObject



71
72
# File 'lib/apprunway.rb', line 71

def install
end

#run_localObject



78
79
80
# File 'lib/apprunway.rb', line 78

def run_local
  system "#{dir}bin/dev_appserver.sh tmp/war"
end