lib/roger/generators.rb in roger-0.10.0 vs lib/roger/generators.rb in roger-0.11.0
- old
+ new
@@ -3,17 +3,18 @@
module Roger
module Generators
class Base < Cli::Command
- def self.register(sub)
- name = sub.to_s.sub(/Generator$/, "").sub(/^.*Generators::/,"").downcase
- usage = "#{name} #{sub.arguments.map{ |arg| arg.banner }.join(" ")}"
- long_desc = sub.desc || "Run #{name} generator"
-
- Cli::Generate.register sub, name, usage, long_desc
- Cli::Generate.tasks[name].options = sub.class_options if sub.class_options
- end
+ end
+
+ def self.register(sub)
+ name = sub.to_s.sub(/Generator$/, "").sub(/^.*Generators::/,"").downcase
+ usage = "#{name} #{sub.arguments.map{ |arg| arg.banner }.join(" ")}"
+ long_desc = sub.desc || "Run #{name} generator"
+
+ Cli::Generate.register sub, name, usage, long_desc
+ Cli::Generate.tasks[name].options = sub.class_options if sub.class_options
end
end
end
\ No newline at end of file