Sha256: 9212d019f44893ef3780d384facdff96b06a2cc44c90922de82ef7cb5a6da59e
Contents?: true
Size: 710 Bytes
Versions: 2
Compression:
Stored size: 710 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- class Chef class Fork module Commands class Noop def initialize(application) @application = application define_options end def run(args=[]) rest = @application.optparse.order(args) end private def define_options() command_name = self.class.to_s.split("::").last.scan(/[A-Z][0-9_a-z]*/).join("-").downcase optparse.banner = "Usage: #{File.basename($0)} #{command_name} [OPTIONS]" end def options() @application.options end def optparse() @application.optparse end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chef-fork-0.1.1 | lib/chef/fork/commands.rb |
chef-fork-0.1.0 | lib/chef/fork/commands.rb |