Sha256: 11c79af39c5c0a68bb62ba43888c86445170c757270be274446854b96ee402f2
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
# Package plugin. # # TODO: If type not set silently fails. NOT GOOD :( # module Capitate::Plugins::Package # Setup packager. # # ==== Options # +packager_type+:: Packager type (:yum) # # ==== Examples (in capistrano task) # package.type = :yum # package.install [ "aspell", "foo" ] # package.remove [ "aspell", "foo" ] # package.update [ "aspell", "foo" ] # package.clean # def type=(packager_type) case packager_type.to_sym when :yum include Capitate::Plugins::Yum else raise "Invalid packager type: #{packager_type}" end end end Capistrano.plugin :package, Capitate::Plugins::Package
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.1.7 | lib/capitate/plugins/package.rb |
capitate-0.1.8 | lib/capitate/plugins/package.rb |
capitate-0.1.9 | lib/capitate/plugins/package.rb |