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 asnil
. Using this constant, we can safely createset_or_return
-style methods. Object.new
- USER_AGENT =
The User-Agent to use for HTTP requests
"Stove #{VERSION}"
- VERSION =
"7.1.6".freeze
Class Method Summary collapse
-
.log_level ⇒ Symbol
Get the current log level.
-
.log_level=(lev) ⇒ Object
Set the log level.
-
.root ⇒ Pathname
The source root of the Stove gem.
Class Method Details
.log_level ⇒ Symbol
Get the current log level.
83 84 85 |
# File 'lib/stove.rb', line 83 def log_level Stove::Log.level end |
.log_level=(lev) ⇒ Object
Set the log level.
74 75 76 |
# File 'lib/stove.rb', line 74 def log_level=(lev) Stove::Log.level = lev.to_sym end |
.root ⇒ Pathname
The source root of the Stove gem. This is useful when requiring files that are relative to the root of the project.
61 62 63 |
# File 'lib/stove.rb', line 61 def root @root ||= Pathname.new(File.('../../', __FILE__)) end |