Class: Onceover::CLI::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/onceover/cli/update.rb

Defined Under Namespace

Classes: Puppetfile

Class Method Summary collapse

Class Method Details

.commandObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/onceover/cli/update.rb', line 9

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