Module: Stove

Defined in:
lib/stove.rb,
lib/stove/cli.rb,
lib/stove/log.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/rake_task.rb,
lib/stove/validator.rb,
lib/stove/artifactory.rb,
lib/stove/plugins/git.rb,
lib/stove/supermarket.rb,
lib/stove/plugins/base.rb,
lib/stove/cookbook/metadata.rb,
lib/stove/mixins/insideable.rb,
lib/stove/mixins/optionable.rb,
lib/stove/mixins/validatable.rb,
lib/stove/mixins/instanceable.rb,
lib/stove/plugins/artifactory.rb,
lib/stove/plugins/supermarket.rb

Defined Under Namespace

Modules: Error, Middleware, Mixin, Plugin, Util Classes: Artifactory, Cli, Config, Cookbook, Filter, Log, Mash, Packager, RakeTask, Runner, Supermarket, 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 =
"7.1.6".freeze

Class Method Summary collapse

Class Method Details

.log_levelSymbol

Get the current log level.

Returns:

  • (Symbol)


83
84
85
# File 'lib/stove.rb', line 83

def log_level
  Stove::Log.level
end

.log_level=(lev) ⇒ Object

Set the log level.

Examples:

Set the log level to :info

Stove.log_level = :info

Parameters:

  • level (#to_sym)

    the log level to set



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

def log_level=(lev)
  Stove::Log.level = lev.to_sym
end

.rootPathname

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

Returns:

  • (Pathname)


61
62
63
# File 'lib/stove.rb', line 61

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