17 lines
403 B
Ruby
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
|