Class: App
- Inherits:
-
Thor
- Object
- Thor
- App
- Defined in:
- lib/app.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/app.rb', line 10 def setup require .project_type rescue raise "No such project type #{.project_type}" [.project_type, "github", "jenkins"].each do |task_group| # run preflight if it exists invoke "#{task_group}:preflight" # rescue puts "no preflight for #{task_group}" end invoke "#{.project_type}:setup", [name] invoke "github:new_project" invoke "jenkins:new_project" # this has to come last so that the hook set up for jenkins can be fired. invoke "github:push" end |