Class: JobSpec::CLI
- Inherits:
-
Thor
- Object
- Thor
- JobSpec::CLI
- Defined in:
- lib/job_spec/cli.rb
Instance Method Summary collapse
Instance Method Details
#build(path = '.') ⇒ Object
7 8 9 10 11 12 |
# File 'lib/job_spec/cli.rb', line 7 def build(path = '.') print "Building roles in #{path}... " Dir[File.join(Dir.pwd, path, '**/*.rb')].each { |f| require f } puts 'done.' p Role.definitions end |
#version ⇒ Object
17 18 19 |
# File 'lib/job_spec/cli.rb', line 17 def version puts "jobspec v#{JobSpec::VERSION}" end |