Class: App

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

Instance Method Summary collapse

Instance Method Details

#setupObject



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 options.project_type rescue raise "No such project type #{options.project_type}"

  [options.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 "#{options.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