Module: Stove

Defined in:
lib/stove/rake_task.rb,
lib/stove.rb,
lib/stove/cli.rb,
lib/stove/jira.rb,
lib/stove/mash.rb,
lib/stove/util.rb,
lib/stove/error.rb,
lib/stove/config.rb,
lib/stove/filter.rb,
lib/stove/runner.rb,
lib/stove/version.rb,
lib/stove/cookbook.rb,
lib/stove/packager.rb,
lib/stove/community.rb,
lib/stove/validator.rb,
lib/stove/actions/dev.rb,
lib/stove/plugins/git.rb,
lib/stove/actions/base.rb,
lib/stove/actions/bump.rb,
lib/stove/plugins/base.rb,
lib/stove/plugins/jira.rb,
lib/stove/actions/start.rb,
lib/stove/actions/finish.rb,
lib/stove/actions/upload.rb,
lib/stove/plugins/github.rb,
lib/stove/actions/changelog.rb,
lib/stove/cookbook/metadata.rb,
lib/stove/mixins/filterable.rb,
lib/stove/mixins/insideable.rb,
lib/stove/mixins/optionable.rb,
lib/stove/plugins/community.rb,
lib/stove/mixins/validatable.rb,
lib/stove/mixins/instanceable.rb,
lib/stove/middlewares/exceptions.rb,
lib/stove/middlewares/chef_authentication.rb

Defined Under Namespace

Modules: Action, Error, Middleware, Mixin, Plugin, Util Classes: Cli, Community, Config, Cookbook, Filter, JIRA, Mash, Packager, RakeTask, Runner, Validator

Constant Summary collapse

UNSET_VALUE =

A constant to represent an unset value. nil is too generic and doesn’t allow users to specify a value as nil. Using this constant, we can safely create set_or_return-style methods.

Returns:

  • (Object)
Object.new
USER_AGENT =

The User-Agent to use for HTTP requests

Returns:

  • (String)
"Stove #{VERSION}"
VERSION =
'2.0.0'

Class Method Summary collapse

Class Method Details

.log_levelSymbol

Get the current log level.

Returns:

  • (Symbol)


95
96
97
# File 'lib/stove.rb', line 95

def log_level
  Logify.level
end

.log_level=(level) ⇒ Object

Set the log level.

Examples:

Set the log level to :info

ChefAPI.log_level = :info

Parameters:

  • level (Symbol)

    the log level to set



86
87
88
# File 'lib/stove.rb', line 86

def log_level=(level)
  Logify.level = level
end

.rootPathname

The source root of the ChefAPI gem. This is useful when requiring files that are relative to the root of the project.

Returns:

  • (Pathname)


73
74
75
# File 'lib/stove.rb', line 73

def root
  @root ||= Pathname.new(File.expand_path('../../', __FILE__))
end