helm/rake/provision.rake
2014-09-05 17:03:57 -04:00

21 lines
422 B
Ruby

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