Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #17 from irvingpop/irving/gem_vendoring
Browse files Browse the repository at this point in the history
Start vendoring gems before I go insane
  • Loading branch information
Irving Popovetsky committed Apr 8, 2014
2 parents d18a8b4 + afe618f commit 42edc5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Berksfile.lock
Gemfile.lock
.bundle
config.json
clients
nodes
Expand Down
15 changes: 10 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ EOH
puts final_message
end

desc 'Install required Gems into the vendor/bundle directory'
task :bundle do
system('bundle install --path vendor/bundle --binstubs')
end

desc 'Bring the VMs online and install+configure Enterprise Chef HA'
task :up => [:keygen, :cachedir, :berks_install, :config_copy] do
task :up => [:keygen, :cachedir, :berks_install, :config_copy, :bundle] do
create_users_directory
if system('chef-client -z -o ec-harness::private_chef_ha')
if system("#{harness_dir}/bin/chef-client -z -o ec-harness::private_chef_ha")
create_hosts_entries(get_config['layout'])
print_final_message(get_config['layout'])
end
Expand All @@ -61,7 +66,7 @@ task :start => :up
desc 'Bring the VMs online and then UPGRADE TORTURE'
task :upgrade_torture => [:keygen, :cachedir, :berks_install, :config_copy] do
create_users_directory
if system('chef-client -z -o ec-harness::upgrade_torture')
if system("#{harness_dir}/bin/chef-client -z -o ec-harness::upgrade_torture")
create_hosts_entries(get_config['layout'])
print_final_message(get_config['layout'])
end
Expand All @@ -70,15 +75,15 @@ end
desc 'Simple upgrade step, installs the package from default_package. Machines must be running'
task :upgrade => [:keygen, :cachedir, :berks_install, :config_copy] do
create_users_directory
if system('chef-client -z -o ec-harness::upgrade')
if system("#{harness_dir}/bin/chef-client -z -o ec-harness::upgrade")
create_hosts_entries(get_config['layout'])
print_final_message(get_config['layout'])
end
end

desc 'Destroy all VMs'
task :destroy do
system('chef-client -z -o ec-harness::cleanup')
system("#{harness_dir}/bin/chef-client -z -o ec-harness::cleanup")
remove_hosts_entries(get_config['layout'])
end
task :cleanup => :destroy
Expand Down

0 comments on commit 42edc5f

Please sign in to comment.