25 lines
499 B
Ruby
Executable File
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
|