personal_deity/bin/personal_deity
John Bintz 7165b24ee4 change
2012-07-03 22:41:30 -04:00

25 lines
499 B
Ruby
Executable File

#!/usr/bin/env ruby
require 'thor'
require 'personal_deity'
module PersonalDeity
class Cli < Thor
include Thor::Actions
def self.source_root ; PersonalDeity.skel.bin ; end
desc "install", "Install personal_deity hooks into Capistrano deployment"
def install
self.destination_root = 'config'
append_file "deploy.rb", "require 'personal_deity/capistrano'"
copy_file 'god.conf', 'god.conf'
end
default_task :install
end
end
PersonalDeity::Cli.start