Sha256: 9337b1aa31766a4d1b0e2817c0275d47e02f47678cb52c8f2d0ec8e32610949b
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Skellington class CLI < Thor desc 'version', 'Print the version' def version puts "skellington version #{VERSION}" end map %w(-v --version) => :version desc 'generate some_path', 'Generate a skeleton Sinatra app named SomePath at some_path' method_option :licensee, aliases: '-l', description: 'Name to insert into the license file' def generate wormname @g = Generator.new wormname @g.licensee = options[:licensee] @g.run end desc 'postinstall', 'Show some helpful hints' def postinstall s = 'Some other things you might find useful (sweeten to taste):' s << "\n\n" s << '* Set up continuous integration in Travis:' s << "\n\n" s << ' travis init' s << "\n\n" s << '* Configure a Heroku app:' s << "\n\n" s << " heroku apps:create YOUR-APP-NAME-HERE --region=eu" s << "\n\n" s << '* Get Travis to continuously deploy to Heroku:' s << "\n\n" s << ' travis setup heroku' s << "\n\n" s << "(This all depends on you having Travis and Heroku installed and configured)" puts s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skellington-0.4.10 | lib/skellington/cli.rb |