personal_deity/bin/personal_diety
2012-07-03 17:54:07 -04:00

27 lines
520 B
Ruby
Executable File

#!/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