Sha256: efa0f0c76cca4c42139db0934aba69c533d03eaec4b43ef6bd9dea6c633b71eb
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
#!/usr/bin/ruby require 'rubygems' require 'fileutils' CHEF_VPC_PROJECT = "#{File.dirname(__FILE__)}" unless defined?(CHEF_VPC_PROJECT) require 'torque-vpc-toolkit' include TorqueVPCToolkit # check to make sure this is a valid Chef VPC project dir if not File.exists?("config/chef_installer.yml") then puts "Run this command within your Chef VPC project directory." exit 1 end if not File.exists?("tasks") then FileUtils.mkdir("tasks") end FileUtils.cp(File.join(TorqueVPCToolkit::TORQUE_VPC_TOOLKIT_ROOT, 'contrib', 'rake', 'Rakefile'), File.join("tasks", "torque_vpc_toolkit.rake")) if not File.exists?("config/jobs.json") and not File.exists?(File.join('config', 'jobs.json.example')) then FileUtils.cp(File.join(TorqueVPCToolkit::TORQUE_VPC_TOOLKIT_ROOT, 'contrib', 'conf', 'jobs.json.example'), 'config') end if not File.exists?("jobs") then FileUtils.mkdir("jobs") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
torque-vpc-toolkit-1.0.0 | bin/torque-vpc-toolkit |