lib/puppet/x/jenkins/provider/cli.rb
# if the provider instance has a resource (which it should outside of
# testing), add :catalog to the options hash so the caller doesn't have to
if the provider instance has a resource (which it should outside of
testing), add :catalog to the options hash so the caller doesn't have to
if the provider instance has a resource ( which it should outside of testing ) add : catalog to the options hash so the caller doesn ' t have to
def clihelper(command, options = nil)
    if resource && resource.catalog
      options ||= {}
      options[:catalog] ||= resource.catalog
    end
    args = []
    args << command
    args << options unless options.nil?
    self.class.clihelper(*args)
  end
def clihelper ( command , options = nil ) if resource && resource . catalog options ||= { } options [ :catalog ] ||= resource . catalog end args = [ ] args << command args << options unless options . nil? self . class . clihelper ( * args ) end
if the provider instance has a resource (which it should outside of
testing), add :catalog to the options hash so the caller doesn't have to
if the provider instance has a resource ( which it should outside of testing ) add : catalog to the options hash so the caller doesn ' t have to
command
options