Sha256: 2aaf34ab8d3ca3dfbb38d08a366d104ebdff9275166d827e3eb3ccc53b80ce2b
Contents?: true
Size: 1.28 KB
Versions: 14
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 @command ||= 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 @command ||= 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
14 entries across 14 versions & 1 rubygems