Module: Ridley

Defined in:
lib/ridley.rb,
lib/ridley/dsl.rb,
lib/ridley/log.rb,
lib/ridley/ssh.rb,
lib/ridley/errors.rb,
lib/ridley/logging.rb,
lib/ridley/version.rb,
lib/ridley/resource.rb,
lib/ridley/chain_link.rb,
lib/ridley/connection.rb,
lib/ridley/middleware.rb,
lib/ridley/ssh/worker.rb,
lib/ridley/bootstrapper.rb,
lib/ridley/ssh/response.rb,
lib/ridley/resources/node.rb,
lib/ridley/resources/role.rb,
lib/ridley/resources/client.rb,
lib/ridley/resources/search.rb,
lib/ridley/ssh/response_set.rb,
lib/ridley/resources/sandbox.rb,
lib/ridley/resources/cookbook.rb,
lib/ridley/resources/data_bag.rb,
lib/ridley/bootstrapper/context.rb,
lib/ridley/middleware/chef_auth.rb,
lib/ridley/middleware/parse_json.rb,
lib/ridley/resources/environment.rb,
lib/ridley/resources/data_bag_item.rb,
lib/ridley/middleware/chef_response.rb,
lib/ridley/resources/encrypted_data_bag_item.rb

Overview

Author:

Defined Under Namespace

Modules: DSL, Errors, Logging, Middleware, Resource Classes: Bootstrapper, ChainLink, Client, Connection, Cookbook, DBIChainLink, DataBag, DataBagItem, EncryptedDataBagItem, Environment, Log, Node, Role, SSH, Sandbox, Search

Constant Summary collapse

CHEF_VERSION =
'10.16.2'.freeze
VERSION =
"0.5.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerLogger Also known as: log

Returns:

  • (Logger)


55
56
57
# File 'lib/ridley.rb', line 55

def logger
  @logger
end

Class Method Details

.connection(*args) ⇒ Object



46
47
48
# File 'lib/ridley.rb', line 46

def connection(*args)
  Connection.new(*args)
end

.rootPathname

Returns:

  • (Pathname)


68
69
70
# File 'lib/ridley.rb', line 68

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

.set_logger(obj) ⇒ Logger

Parameters:

  • obj (Logger, nil)

Returns:

  • (Logger)


63
64
65
# File 'lib/ridley.rb', line 63

def set_logger(obj)
  Ridley::Logging.set_logger(obj)
end

.sync(*args, &block) ⇒ Object



50
51
52
# File 'lib/ridley.rb', line 50

def sync(*args, &block)
  Connection.sync(*args, &block)
end