Sha256: ab8dbf1c110b9a186e4660bff4858e27016a6f692463fa9626851b6f58c63ae3
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require "chef/fork/commands" class Chef class Fork module Commands class Role < Noop def run(args=[]) rest = optparse.order(args) case rest.first when "from" role_from(rest.slice(1..-1) || []) when "show" role_show(rest.slice(1..-1) || []) else raise(NameError.new(rest.inspect)) end end def role_from(args=[]) case args.shift when "file" rome_from_file(args.slice(1..-1)) else raise(NameError.new(args.inspect)) end end def role_from_file(args=[]) raise(NotImplementedError.new(args.inspect)) end def role_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/role.rb |