helm/rake/setup.rake
2014-07-17 08:11:35 -04:00

17 lines
403 B
Ruby

require_relative 'lib/output'
desc "Update the node (based on hostname)"
task :default, :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