Class: P::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/p/command.rb

Instance Method Summary collapse

Instance Method Details

#new(name) ⇒ Object



13
14
15
16
# File 'lib/p/command.rb', line 13

def new(name)
  t = P::Template.new(options[:template], name)
  P::Builder.run!(t)
end

#versionObject



19
20
21
# File 'lib/p/command.rb', line 19

def version
  puts P::VERSION
end