lib/generators/apitome/install/install_generator.rb in apitome-0.0.8 vs lib/generators/apitome/install/install_generator.rb in apitome-0.1.0

- old
+ new

@@ -3,14 +3,15 @@ class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../", __FILE__) desc "Installs the Apitome initializer and markdown file into your application." - class_option :assets, type: :boolean, + class_option :assets, + type: :boolean, aliases: "-a", default: false, - desc: "Install the javascript and stylesheet assets to /public" + desc: "Install the javascript and stylesheet assets to /public" def copy_initializers copy_file "templates/initializer.rb", "config/initializers/apitome.rb" copy_file "templates/api.md", "doc/api.md" end @@ -22,9 +23,8 @@ end def display_readme readme "POST_INSTALL" if behavior == :invoke end - end end end