Class: Ruflow::Tasks::Base
- Inherits:
-
Thor
- Object
- Thor
- Ruflow::Tasks::Base
- Defined in:
- lib/ruflow/tasks/base.rb
Instance Method Summary collapse
Instance Method Details
#new(project_name) ⇒ Object
8 9 10 |
# File 'lib/ruflow/tasks/base.rb', line 8 def new(project_name) Ruflow::Tasks::Setup.start([project_name]) end |
#setup ⇒ Object
25 26 27 |
# File 'lib/ruflow/tasks/base.rb', line 25 def setup Ruflow::Tasks::Setup.start(['.']) end |
#start(flow_klass_name) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ruflow/tasks/base.rb', line 13 def start(flow_klass_name) _file_path = "#{Dir.pwd}/ruflow_config" if File.exist?("#{_file_path}.rb") require _file_path Kernel.const_get(flow_klass_name).start else puts "ruflow_config.rb not found on #{Dir.pwd}" end end |