lib/chef/fork/commands.rb in chef-fork-0.1.1 vs lib/chef/fork/commands.rb in chef-fork-0.1.2
- old
+ new
@@ -1,8 +1,10 @@
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
+require "chef/rest"
+
class Chef
class Fork
module Commands
class Noop
def initialize(application)
@@ -24,9 +26,13 @@
@application.options
end
def optparse()
@application.optparse
+ end
+
+ def rest()
+ @rest ||= Chef::REST.new(Chef::Config[:chef_server_url])
end
end
end
end
end