lib/nugem/cli/cli_rails.rb in nugem-0.8.1 vs lib/nugem/cli/cli_rails.rb in nugem-0.8.3

- old
+ new

@@ -1,11 +1,10 @@ require_relative '../cli' module Nugem class Cli < Thor include Thor::Actions - include Nugem::Git desc 'rails NAME', 'Creates a new Rails rails scaffold.' long_desc <<~END_DESC Creates a new Rails rails scaffold with the given NAME, @@ -38,20 +37,20 @@ end private def create_engine_scaffold(gem_name) - say "Creating a new Rails engine scaffold for a new gem named #{gem_name} in #{@dir}", :green + puts set_color("Creating a new Rails engine scaffold for a new gem named #{gem_name} in #{@dir}", :green) directory 'rails/engine_scaffold', @dir, force: true, mode: :preserve end def create_mountable_scaffold(gem_name) - say "Creating a mountable Rails engine scaffold for a new gem named #{gem_name} in #{@dir}", :green + puts set_color("Creating a mountable Rails engine scaffold for a new gem named #{gem_name} in #{@dir}", :green) directory 'rails/mountable_scaffold', @dir, force: true, mode: :preserve end def create_rails_scaffold(gem_name) - say "Creating a new Rails plugin scaffold as a gem named #{gem_name} in #{@dir}", :green + puts set_color("Creating a new Rails plugin scaffold as a gem named #{gem_name} in #{@dir}", :green) directory 'rails/rails_scaffold', @dir, force: true, mode: :preserve Dir.chdir @dir do run 'chmod +x test/dummy/bin/*' # TODO: fix me end end