Sha256: 6e0b18bf952647c2ca9048439f5c0cca1404e7c36051b31435ca002b679e633b
Contents?: true
Size: 839 Bytes
Versions: 1
Compression:
Stored size: 839 Bytes
Contents
require 'puppeteer/version' require 'capistrano' module Capistrano class Puppeteer def self.extended(configuration) configuration.load do _cset(:puppet_path) { abort "Please specify the path to puppet, set :puppet_path, '/srv/puppet'" } namespace :puppet do task :update do run_locally 'git push' run "cd #{puppet_path} && git pull --quiet" end desc 'Perform a puppet run' task :go do update options = ENV['options'] || ENV['OPTIONS'] || '' run "cd #{puppet_path} && #{sudo} puppet apply --configfile puppet.conf manifests/site.pp #{options}" end end end end end end if Capistrano::Configuration.instance Capistrano::Configuration.instance.extend Capistrano::Puppeteer end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-puppeteer-0.0.1 | lib/capistrano/puppeteer.rb |