ulbrich-jruby-enginize 0.6 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/generator.rb +16 -7
- data/templates/sinatra/.gitignore +14 -0
- metadata +2 -1
data/lib/generator.rb
CHANGED
@@ -59,19 +59,28 @@ module JRubyEnginize # :nodoc:
|
|
59
59
|
raise ArgumentError, 'Missing shared templates' unless File.stat(shareddir).directory?
|
60
60
|
raise ArgumentError, "Template \"#{template}\" missing" unless File.stat(templatedir).directory?
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
if dryrun
|
63
|
+
puts "Dry run which would generate the following files for template \"#{template}\":"
|
64
|
+
else
|
65
|
+
puts "Generating files for template \"#{template}\"."
|
66
|
+
end
|
65
67
|
|
66
68
|
template_files(shareddir, templatedir).each do |key, path|
|
67
69
|
target = File.join(self.path, key)
|
68
|
-
puts " Creating \"#{target}\" from template\n file \"#{path}\""
|
69
70
|
|
70
|
-
|
71
|
+
if dryrun
|
72
|
+
puts " Creating \"#{target}\" from template\n file \"#{path}\""
|
73
|
+
else
|
74
|
+
process_file(path, target)
|
75
|
+
end
|
71
76
|
end
|
72
77
|
|
73
|
-
|
74
|
-
|
78
|
+
if not dryrun
|
79
|
+
puts "Done with directory \"#{self.path}\"."
|
80
|
+
|
81
|
+
puts "\nYour next steps:\n cd #{self.path}\n\n jruby -S rake"
|
82
|
+
puts " jruby -S rake --tasks\n\n jruby -S rake appengine:deploy"
|
83
|
+
end
|
75
84
|
end
|
76
85
|
|
77
86
|
# Returns an Array with the available template names.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ulbrich-jruby-enginize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Ulbrich
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- templates/sinatra/config.ru
|
34
34
|
- templates/sinatra/config/warble.rb
|
35
35
|
- templates/sinatra/app.rb
|
36
|
+
- templates/sinatra/.gitignore
|
36
37
|
- templates/shared/README
|
37
38
|
- templates/shared/Rakefile
|
38
39
|
- templates/shared/public/robots.txt
|