lib/ggem/cli.rb in ggem-1.8.4 vs lib/ggem/cli.rb in ggem-1.9.0

- old
+ new

@@ -1,20 +1,20 @@ -require 'ggem/version' -require 'ggem/cli/clirb' -require 'ggem/cli/commands' +require "ggem/version" +require "ggem/cli/clirb" +require "ggem/cli/commands" module GGem class CLI COMMANDS = CommandSet.new{ |unknown| InvalidCommand.new(unknown) }.tap do |c| - c.add(GenerateCommand, 'generate', 'g') - c.add(BuildCommand, 'build', 'b') - c.add(InstallCommand, 'install', 'i') - c.add(PushCommand, 'push', 'p') - c.add(TagCommand, 'tag', 't') - c.add(ReleaseCommand, 'release', 'r') + c.add(GenerateCommand, "generate", "g") + c.add(BuildCommand, "build", "b") + c.add(InstallCommand, "install", "i") + c.add(PushCommand, "push", "p") + c.add(TagCommand, "tag", "t") + c.add(ReleaseCommand, "release", "r") end def self.run(args) self.new.run(args) end @@ -50,10 +50,10 @@ end private def display_debug(exception) - if ENV['DEBUG'] + if ENV["DEBUG"] @stderr.puts "#{exception.class}: #{exception.message}" @stderr.puts exception.backtrace.join("\n") end end