Module: EacRubyUtils

Defined in:
lib/eac_ruby_utils.rb,
lib/eac_ruby_utils/fs.rb,
lib/eac_ruby_utils/envs.rb,
lib/eac_ruby_utils/ruby.rb,
lib/eac_ruby_utils/yaml.rb,
lib/eac_ruby_utils/patch.rb,
lib/eac_ruby_utils/rspec.rb,
lib/eac_ruby_utils/struct.rb,
lib/eac_ruby_utils/boolean.rb,
lib/eac_ruby_utils/configs.rb,
lib/eac_ruby_utils/fs/temp.rb,
lib/eac_ruby_utils/version.rb,
lib/eac_ruby_utils/fs_cache.rb,
lib/eac_ruby_utils/listable.rb,
lib/eac_ruby_utils/envs/file.rb,
lib/eac_ruby_utils/immutable.rb,
lib/eac_ruby_utils/inflector.rb,
lib/eac_ruby_utils/envs/spawn.rb,
lib/eac_ruby_utils/fs/extname.rb,
lib/eac_ruby_utils/paths_hash.rb,
lib/eac_ruby_utils/require_sub.rb,
lib/eac_ruby_utils/by_reference.rb,
lib/eac_ruby_utils/configs/base.rb,
lib/eac_ruby_utils/configs/file.rb,
lib/eac_ruby_utils/envs/command.rb,
lib/eac_ruby_utils/envs/process.rb,
lib/eac_ruby_utils/envs/ssh_env.rb,
lib/eac_ruby_utils/fs/temp/file.rb,
lib/eac_ruby_utils/fs/traverser.rb,
lib/eac_ruby_utils/ruby/command.rb,
lib/eac_ruby_utils/simple_cache.rb,
lib/eac_ruby_utils/custom_format.rb,
lib/eac_ruby_utils/envs/base_env.rb,
lib/eac_ruby_utils/listable/list.rb,
lib/eac_ruby_utils/common_concern.rb,
lib/eac_ruby_utils/envs/local_env.rb,
lib/eac_ruby_utils/fs/traversable.rb,
lib/eac_ruby_utils/listable/lists.rb,
lib/eac_ruby_utils/listable/value.rb,
lib/eac_ruby_utils/templates/file.rb,
lib/eac_ruby_utils/blank_not_blank.rb,
lib/eac_ruby_utils/console/configs.rb,
lib/eac_ruby_utils/console/speaker.rb,
lib/eac_ruby_utils/envs/executable.rb,
lib/eac_ruby_utils/paths_hash/node.rb,
lib/eac_ruby_utils/contextualizable.rb,
lib/eac_ruby_utils/filesystem_cache.rb,
lib/eac_ruby_utils/options_consumer.rb,
lib/eac_ruby_utils/fs/temp/directory.rb,
lib/eac_ruby_utils/rspec/conditional.rb,
lib/eac_ruby_utils/rspec/stubbed_ssh.rb,
lib/eac_ruby_utils/settings_provider.rb,
lib/eac_ruby_utils/arguments_consumer.rb,
lib/eac_ruby_utils/common_constructor.rb,
lib/eac_ruby_utils/envs/ssh_env/quiet.rb,
lib/eac_ruby_utils/templates/searcher.rb,
lib/eac_ruby_utils/templates/directory.rb,
lib/eac_ruby_utils/console/speaker/list.rb,
lib/eac_ruby_utils/console/speaker/node.rb,
lib/eac_ruby_utils/listable/string_list.rb,
lib/eac_ruby_utils/listable/symbol_list.rb,
lib/eac_ruby_utils/console/docopt_runner.rb,
lib/eac_ruby_utils/envs/ssh_env/terminal.rb,
lib/eac_ruby_utils/listable/integer_list.rb,
lib/eac_ruby_utils/fs/clearable_directory.rb,
lib/eac_ruby_utils/listable/class_methods.rb,
lib/eac_ruby_utils/paths_hash/path_search.rb,
lib/eac_ruby_utils/immutable/base_accessor.rb,
lib/eac_ruby_utils/immutable/class_methods.rb,
lib/eac_ruby_utils/immutable/hash_accessor.rb,
lib/eac_ruby_utils/immutable/array_accessor.rb,
lib/eac_ruby_utils/immutable/common_accessor.rb,
lib/eac_ruby_utils/listable/instance_methods.rb,
lib/eac_ruby_utils/on_clean_ruby_environment.rb,
lib/eac_ruby_utils/ruby/on_clean_environment.rb,
lib/eac_ruby_utils/console/docopt_runner/_doc.rb,
lib/eac_ruby_utils/console/speaker/_constants.rb,
lib/eac_ruby_utils/envs/command/extra_options.rb,
lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb,
lib/eac_ruby_utils/envs/ssh_env/identity_file.rb,
lib/eac_ruby_utils/immutable/boolean_accessor.rb,
lib/eac_ruby_utils/immutable/instance_methods.rb,
lib/eac_ruby_utils/paths_hash/entry_key_error.rb,
lib/eac_ruby_utils/console/configs/entry_reader.rb,
lib/eac_ruby_utils/templates/variable_providers.rb,
lib/eac_ruby_utils/console/speaker/_class_methods.rb,
lib/eac_ruby_utils/console/docopt_runner/_settings.rb,
lib/eac_ruby_utils/templates/variable_providers/base.rb,
lib/eac_ruby_utils/templates/variable_providers/hash.rb,
lib/eac_ruby_utils/console/configs/read_entry_options.rb,
lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb,
lib/eac_ruby_utils/templates/variable_not_found_error.rb,
lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb,
lib/eac_ruby_utils/templates/variable_providers/generic.rb,
lib/eac_ruby_utils/console/configs/password_entry_reader.rb,
lib/eac_ruby_utils/templates/variable_providers/entries_reader.rb,
lib/eac_ruby_utils/console/configs/store_passwords_entry_reader.rb

Defined Under Namespace

Modules: Console, Contextualizable, Envs, Fs, Immutable, Listable, Rspec, Ruby, SettingsProvider, SimpleCache, Templates Classes: ArgumentsConsumer, BlankNotBlank, Boolean, ByReference, CommonConcern, CommonConstructor, Configs, CustomFormat, FilesystemCache, Inflector, OptionsConsumer, PathsHash, RequireSub, Struct, Yaml

Constant Summary collapse

VERSION =
'0.51.1'

Class Method Summary collapse

Class Method Details

.fs_cacheObject


8
9
10
# File 'lib/eac_ruby_utils/fs_cache.rb', line 8

def fs_cache
  @fs_cache ||= ::EacRubyUtils::FilesystemCache.new(::Dir.tmpdir, 'eac_ruby_utils', '.cache')
end

.on_clean_ruby_environment(*args, &block) ⇒ Object

DEPRECATED: Please use EacRubyUtils::Ruby.on_clean_environment instead.


8
9
10
# File 'lib/eac_ruby_utils/on_clean_ruby_environment.rb', line 8

def on_clean_ruby_environment(*args, &block)
  ::EacRubyUtils::Ruby.on_clean_environment(*args, &block)
end

.patch(target, patch) ⇒ Object


5
6
7
8
9
# File 'lib/eac_ruby_utils/patch.rb', line 5

def patch(target, patch)
  return if target.included_modules.include?(patch)

  target.send(:include, patch)
end

.require_sub(file, options = {}) ⇒ Object


8
9
10
# File 'lib/eac_ruby_utils/require_sub.rb', line 8

def require_sub(file, options = {})
  ::EacRubyUtils::RequireSub.new(file, options).apply
end