helm/rake/provision.rake

21 lines
422 B
Ruby
Raw Normal View History

2014-08-30 23:50:03 -07:00
require_relative 'lib/output'
2014-09-05 14:03:57 -07:00
task :default => :update
2014-08-30 23:50:03 -07:00
desc "Update the node (based on hostname)"
2014-09-05 14:03:57 -07:00
task :update, :node do |t, args|
2014-08-30 23:50:03 -07:00
args.with_defaults(:node => `hostname`.gsub('.local', '').strip)
Rake::Task["setup:#{args.node}"].invoke
end
2014-09-05 14:03:57 -07:00
# desc "Wipe the slate clean"
2014-08-30 23:50:03 -07:00
task :destroy do
# are you sure?
# are you really really sure?
# TODO: EXTERMINATE!
end
namespace :setup do
load_all("node/*.rake")
end