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 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
- puts "!!no changes written as this is only a dry run...\n" if dryrun
64
- puts "Generating files for template \"#{template}\":\n\n"
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
- process_file(path, target) unless dryrun
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
- puts "\nYour next steps:\n\n cd #{self.path}\n\n jruby -S rake"
74
- puts " jruby -S rake --tasks\n\n jruby -S rake appengine:deploy\n\n"
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.
@@ -0,0 +1,14 @@
1
+ .DS_Store
2
+ log/*
3
+ tmp/*
4
+ TAGS
5
+ *~
6
+ .#*
7
+ *.sqlite
8
+ *.sqlite3
9
+ *.db
10
+ .hgignore
11
+ .hg/*
12
+ .svn/*
13
+ gems/gems/*
14
+ gems/specifications/*
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: "0.6"
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