Class: Goku::CLI
- Inherits:
-
Thor
- Object
- Thor
- Goku::CLI
- Defined in:
- lib/goku/cli.rb
Instance Method Summary collapse
Instance Method Details
#c(raw_path) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/goku/cli.rb', line 5 def c(raw_path) path = Goku::Path.new(raw_path) factory = Goku::ElementFactory.new(path) implementation = factory.create_class.to_s spec = factory.create_spec.to_s save(path, implementation, spec) end |
#m(raw_path) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/goku/cli.rb', line 16 def m(raw_path) path = Goku::Path.new(raw_path) factory = Goku::ElementFactory.new(path) implementation = factory.create_module.to_s spec = factory.create_spec.to_s save(path, implementation, spec) end |