Sha256: de4f54e276afc1af85703003fed7fc603d851704a72820525fc1aadd320fc4fa
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
require "thor" require "securerandom" module Simba class Command < Thor include Thor::Actions map "-v" => :version def self.source_root File.dirname(__FILE__) end desc "version", "show version" def version puts Simba::VERSION end desc "new", "create the skeleton of project" def new(name) @secret = SecureRandom.hex 32 directory("templates", name) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simba-0.8.1 | lib/simba/command.rb |
simba-0.8.0 | lib/simba/command.rb |