Module: Apprunway::SDK
Instance Method Summary collapse
- #cmd(str = '') ⇒ Object
- #default_dir ⇒ Object
- #deploy ⇒ Object
- #dir ⇒ Object
- #install ⇒ Object
- #run_local ⇒ Object
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_dir ⇒ Object
63 64 65 |
# File 'lib/apprunway.rb', line 63 def default_dir "~/.appengine-java-sdk-1.2.1/" end |
#deploy ⇒ Object
74 75 76 |
# File 'lib/apprunway.rb', line 74 def deploy cmd "update ./tmp/war" end |
#dir ⇒ Object
59 60 61 |
# File 'lib/apprunway.rb', line 59 def dir File.join(ENV['APPENGINE_JAVA_SDK_INSTALL'] || default_dir, '') end |
#install ⇒ Object
71 72 |
# File 'lib/apprunway.rb', line 71 def install end |
#run_local ⇒ Object
78 79 80 |
# File 'lib/apprunway.rb', line 78 def run_local system "#{dir}bin/dev_appserver.sh tmp/war" end |