Top Level Namespace
Defined Under Namespace
Modules: Enumerable, Eye Classes: Array, NilClass, Numeric, Object, String, Symbol
Instance Method Summary collapse
-
#current_config_path ⇒ Object
current eye parsed config path.
-
#hostname ⇒ Object
host name.
- #silence_warnings ⇒ Object
Instance Method Details
#current_config_path ⇒ Object
current eye parsed config path
5 6 7 |
# File 'lib/eye/dsl/helpers.rb', line 5 def current_config_path Eye.parsed_filename && File.symlink?(Eye.parsed_filename) ? File.readlink(Eye.parsed_filename) : Eye.parsed_filename end |
#hostname ⇒ Object
host name
10 11 12 |
# File 'lib/eye/dsl/helpers.rb', line 10 def hostname Eye::Local.host end |
#silence_warnings ⇒ Object
3 4 5 6 7 8 |
# File 'lib/eye/utils/mini_active_support.rb', line 3 def silence_warnings old_verbose, $VERBOSE = $VERBOSE, nil yield ensure $VERBOSE = old_verbose end |