Sha256: 823bd62690dc3e7e889279fc8c5bc4b73684dbde3907459c73d538e2c4fade06
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require "chef/rest" 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 def rest() @rest ||= Chef::REST.new(Chef::Config[:chef_server_url]) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chef-fork-0.1.2 | lib/chef/fork/commands.rb |