lib/generators/module/module_generator.rb in automate-em-0.0.1 vs lib/generators/module/module_generator.rb in automate-em-0.0.2

- old
+ new

@@ -10,25 +10,25 @@ path = File.join('app/modules', *param) scope = [] text = "" param.map! {|item| - item = item.classify + item = item.camelcase scope << item text += "module #{scope.join('::')}; end\n" item } - param << name.classify + param << name.camelcase scope = param.join('::') create_file File.join(path, "#{name}.rb") do type = ask("What type of module (device, service, logic) will this be?") text += <<-FILE -class #{scope} < AutomateEm::#{type.downcase.classify} +class #{scope} < AutomateEm::#{type.downcase.camelcase} def on_load end def on_unload end