Class: WorkOn::Cli

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object

use method_missing to start the project



12
13
14
# File 'lib/work_on/cli.rb', line 12

def method_missing(name, *args)
  start(name.to_s)
end

Instance Method Details

#start(project_name) ⇒ Object



7
8
9
# File 'lib/work_on/cli.rb', line 7

def start(project_name)
  Project.new(Config.new(project_name)).work!
end