Module: ChefStash
- Defined in:
- lib/chef_stash.rb,
lib/chef_stash/os.rb,
lib/chef_stash/rash.rb,
lib/chef_stash/utils.rb,
lib/chef_stash/version.rb,
lib/chef_stash/disk_store.rb,
lib/chef_stash/memoizable.rb,
lib/chef_stash/time_cache.rb
Overview
Author: Stefano Harding <[email protected]>
Copyright © 2014-2015 Stefano Harding
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Defined Under Namespace
Modules: Memoizable, OS, Response, Version Classes: Cache, DiskStore, FileSize, Rash, TimeCache
Constant Summary collapse
- NEW_CALL =
Check if we’re using a version if Ruby that supports caller_locations.
Kernel.respond_to? 'caller_locations'
- DEFAULT_STORE =
Default hash stash cache store type.
DiskStore
- VERSION =
ChefStash::Version.string
Class Method Summary collapse
-
.caller_name ⇒ Object
helper to get the calling function name.
-
.new(*args) ⇒ Object
insert a helper .new() method for creating a new object.
Class Method Details
.caller_name ⇒ Object
helper to get the calling function name
47 48 49 |
# File 'lib/chef_stash.rb', line 47 def self.caller_name NEW_CALL ? caller_locations(2, 1).first.label : caller[1][/`([^']*)'/, 1] end |
.new(*args) ⇒ Object
insert a helper .new() method for creating a new object
41 42 43 |
# File 'lib/chef_stash.rb', line 41 def self.new(*args) self::Cache.new(*args) end |