class Sambot::Tasks::Build
Public Instance Methods
run(options)
click to toggle source
# File lib/sambot/tasks/build.rb, line 11 def run(options) cloud = nil cloud = 'local' if options[:local] cloud = 'google' if options[:google] cloud = 'rackspace' if options[:rackspace] unless cloud UI.error('Please select which environment this is building for using one of the following flags: --local, --rackspace or --google') exit end local_workflow = options[:docker] ? 'docker' : 'vagrant' Chef::Cookbook.build(Config.read, cloud, local_workflow) end