Sha256: da6c8b693c4079312ae1dbb4a6326216ad13e2bef424a6890ecb02dcde33f7dc
Contents?: true
Size: 1.28 KB
Versions: 58
Compression:
Stored size: 1.28 KB
Contents
require 'cri' require 'onceover/controlrepo' require 'onceover/cli' require 'onceover/logger' class Onceover class CLI class Update def self.command @cmd ||= Cri::Command.define do name 'update' usage 'update puppetfile' summary 'Updates stuff, currently only the Puppetfile' run do |opts, args, cmd| # Print out the description puts cmd.help(:verbose => opts[:verbose]) exit 0 end end end class Puppetfile def self.command @cmd ||= Cri::Command.define do name 'puppetfile' usage 'puppetfile' summary 'Update all modules in the Puppetfile' description <<-DESCRIPTION Updates all modules to their latest version and writes that file back onto the system over the original Puppetfile. DESCRIPTION run do |opts, args, cmd| # Print out the description Onceover::Controlrepo.new(opts).update_puppetfile exit 0 end end end end end end end # Register itself Onceover::CLI.command.add_command(Onceover::CLI::Update.command) Onceover::CLI::Update.command.add_command(Onceover::CLI::Update::Puppetfile.command)
Version data entries
58 entries across 58 versions & 1 rubygems