personal_deity/bin/personal_diety

27 lines
520 B
Plaintext
Raw Normal View History

2012-07-03 21:54:07 +00:00
#!/usr/bin/env ruby
require 'thor'
require 'personal_diety'
module PersonalDiety
class Cli < Thor
include Thor::Actions
def self.source_root ; PersonalDiety.skel.bin ; end
desc "install", "Install personal_diety hooks into Capistrano deployment"
def install
self.destination_root = 'config'
append_file "deploy.rb", <<-RB
require 'personal_diety/capistrano'
RB
copy_file 'god.conf', 'god.conf'
end
default_task :install
end
end
PersonalDiety::Cli.start