appengine-tools 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/appengine-tools/bundler.rb +18 -0
- metadata +3 -3
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'spec/rake/spectask'
|
|
6
6
|
require 'appengine-sdk'
|
7
7
|
|
8
8
|
GEM = "appengine-tools"
|
9
|
-
GEM_VERSION = "0.0.
|
9
|
+
GEM_VERSION = "0.0.16"
|
10
10
|
HOMEPAGE = "http://code.google.com/p/appengine-jruby"
|
11
11
|
|
12
12
|
PLUGIN_SOURCE = 'src/com/google/appengine/jruby/JRubyYamlPlugin.java'
|
@@ -64,6 +64,10 @@ module AppEngine
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def app_yaml
|
67
|
+
path('WEB-INF', 'app.yaml')
|
68
|
+
end
|
69
|
+
|
70
|
+
def old_yaml
|
67
71
|
path('app.yaml')
|
68
72
|
end
|
69
73
|
|
@@ -120,6 +124,20 @@ module AppEngine
|
|
120
124
|
end
|
121
125
|
|
122
126
|
def confirm_appdir
|
127
|
+
if File.exists?(app.old_yaml)
|
128
|
+
if File.exists?(app.app_yaml)
|
129
|
+
puts ""
|
130
|
+
puts "Warning, you have two versions of app.yaml."
|
131
|
+
puts "We only use the version in the WEB-INF dir."
|
132
|
+
puts ""
|
133
|
+
else
|
134
|
+
puts ""
|
135
|
+
puts "Sorry, app.yaml needs to be inside the WEB-INF dir."
|
136
|
+
puts "Don't worry, we are moving it there now."
|
137
|
+
puts ""
|
138
|
+
FileUtils.mv(app.old_yaml, app.app_yaml)
|
139
|
+
end
|
140
|
+
end
|
123
141
|
unless File.exists?(app.app_yaml)or File.exists?(app.webinf)
|
124
142
|
puts ""
|
125
143
|
puts "Oops, this does not look like an application directory."
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 16
|
9
|
+
version: 0.0.16
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ryan Brown
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-03 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|