Sha256: c69c1c5c5bad671836c24ab08af5306328921723effbb49d3f6e03735265e1f9
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require "chef/fork/commands" class Chef class Fork module Commands class Environment < Noop def run(args=[]) rest = optparse.order(args) case rest.first when "from" environment_from(rest.slice(1..-1) || []) when "show" environment_show(rest.slice(1..-1) || []) else raise(NameError.new(rest.inspect)) end end private def environment_from(args=[]) case args.first when "file" environment_from_file(args.slice(1..-1) || []) else raise(NameError.new(args.inspect)) end end def environment_from_file(args=[]) raise(NotImplementedError.new(args.inspect)) end def environment_show(args=[]) raise(NotImplementedError.new(args.inspect)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chef-fork-0.1.1 | lib/chef/fork/commands/environment.rb |