lib/lita/cli.rb in lita-4.2.0 vs lib/lita/cli.rb in lita-4.2.1

- old
+ new

@@ -89,26 +89,29 @@ # Generates a new Lita adapter. # @param name [String] The name for the new adapter. # @return [void] def adapter(name) generate_templates(generate_config(name, "adapter")) + license_message end desc "handler NAME", "Generates a new Lita handler" # Generates a new Lita handler. # @param name [String] The name for the new handler. # @return [void] def handler(name) generate_templates(generate_config(name, "handler")) + license_message end desc "extension NAME", "Generates a new Lita extension" # Generates a new Lita extension. # @param name [String] The name for the new extension. # @return [void] def extension(name) generate_templates(generate_config(name, "extension")) + license_message end desc "version", "Outputs the current version of Lita" # Outputs the current version of Lita. # @return [void] @@ -177,12 +180,15 @@ end copy_file("plugin/Gemfile", "#{target}/Gemfile") template("plugin/gemspec.tt", "#{target}/#{gem_name}.gemspec", config) copy_file("plugin/gitignore", "#{target}/.gitignore") copy_file("plugin/travis.yml", "#{target}/.travis.yml") if travis - template("plugin/LICENSE.tt", "#{target}/LICENSE", config) copy_file("plugin/Rakefile", "#{target}/Rakefile") template("plugin/README.tt", "#{target}/README.md", config) + end + + def license_message + say I18n.t("lita.cli.license_notice"), :yellow end def normalize_names(name) name = name.downcase.sub(/^lita[_-]/, "") gem_name = "lita-#{name}"