Class: Skellington::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/skellington/cli.rb

Instance Method Summary collapse

Instance Method Details

#generate(wormname) ⇒ Object



21
22
23
24
25
# File 'lib/skellington/cli.rb', line 21

def generate wormname
  @g = Generator.new wormname, options
  @g.licensor = options[:licensor]
  @g.run
end

#postinstallObject



29
30
31
32
33
34
# File 'lib/skellington/cli.rb', line 29

def postinstall
  s = 'For some other things you might find useful, see this gist:'
  s << "\n\n"
  s << '    https://gist.github.com/pikesley/1789cab7b10f0d8765d4'
  puts s
end

#versionObject



4
5
6
# File 'lib/skellington/cli.rb', line 4

def version
  puts "skellington version #{VERSION}"
end