Class: Hyrb::Tasks::Project::Inject

Inherits:
Hyrb::Task show all
Defined in:
lib/hyrb/tasks/project.rb

Instance Attribute Summary

Attributes inherited from Hyrb::Task

#env, #pipeline

Instance Method Summary collapse

Methods inherited from Hyrb::Task

depends, #initialize, prompt, prompts, #run_before

Constructor Details

This class inherits a constructor from Hyrb::Task

Instance Method Details

#run(env) ⇒ Object



9
10
11
12
# File 'lib/hyrb/tasks/project.rb', line 9

def run(env)
  env.project = Hyrb::Models::Project.new(env.project_name || ask("Project name"))
  env.project.save!
end