lib/slappy/cli.rb in slappy-0.3.0 vs lib/slappy/cli.rb in slappy-0.4.0

- old
+ new

@@ -8,9 +8,14 @@ desc 'new [DIR_NAME]', 'create new slappy project' def new(dir_name = nil) build_command(:generator).call(dir_name) end + desc 'version', 'show version number' + def version + puts Slappy::VERSION + end + private def build_command(command_name) "Slappy::Commands::#{command_name.to_s.camelize}".constantize.new end