Sha256: 4e7caed638ad0106243b70d5f0c20c1dfa3c3d3149c92aeec21eb84756f0f80c
Contents?: true
Size: 741 Bytes
Versions: 6
Compression:
Stored size: 741 Bytes
Contents
require 'chef/rest' # Refer to README.md for use instructions module Ogre # Base ogre class includes common parameters used to authenticate with Chef::REST class Base < Thor::Group include Thor::Actions # Chef Rest parameters class_option :server_url, type: :string, desc: DESC_CHEF_SERVER_URL class_option :run_as, type: :string, desc: DESC_RUN_AS class_option :key_path, type: :string, desc: DESC_PRIVATE_KEY # Parameters passed in from cli will take precedence def chef_rest Chef::REST.new(options[:server_url] || Config.options[:server_url], options[:run_as] || Config.options[:run_as], options[:key_path] || Config.options[:key_path]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ogre-0.1.5 | lib/ogre/base.rb |
ogre-0.1.4 | lib/ogre/base.rb |
ogre-0.1.3 | lib/ogre/base.rb |
ogre-0.1.2 | lib/ogre/base.rb |
ogre-0.1.1 | lib/ogre/base.rb |
ogre-0.1.0 | lib/ogre/base.rb |