Module: Tools
- Defined in:
- lib/tools.rb,
lib/tools/version.rb
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
"0.0.7"- HOMEPAGE =
"https://github.com/Xyko/tools"- @@check_version =
nil
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .files ⇒ Object
- .gem_path ⇒ Object
- .get_check_version ⇒ Object
- .home ⇒ Object
- .host ⇒ Object
- .ldap_pass ⇒ Object
- .ldap_user ⇒ Object
- .pwd ⇒ Object
- .root ⇒ Object
- .set_check_version(param) ⇒ Object
- .user ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
35 36 37 |
# File 'lib/tools.rb', line 35 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
37 38 39 40 |
# File 'lib/tools.rb', line 37 def configure self.configuration ||= Configuration.new yield(configuration) end |
.files ⇒ Object
49 50 51 |
# File 'lib/tools.rb', line 49 def self.files File.join root, 'lib/files' end |
.gem_path ⇒ Object
77 78 79 |
# File 'lib/tools.rb', line 77 def self.gem_path ENV['GEM_PATH'] end |
.get_check_version ⇒ Object
26 27 28 |
# File 'lib/tools.rb', line 26 def self.get_check_version return @@check_version end |
.home ⇒ Object
57 58 59 |
# File 'lib/tools.rb', line 57 def self.home ENV['HOME'] end |
.host ⇒ Object
53 54 55 |
# File 'lib/tools.rb', line 53 def self.host Socket.gethostname end |
.ldap_pass ⇒ Object
69 70 71 |
# File 'lib/tools.rb', line 69 def self.ldap_pass ENV['ldap_pass'] end |
.ldap_user ⇒ Object
73 74 75 |
# File 'lib/tools.rb', line 73 def self.ldap_user ENV['ldap_user'] end |
.pwd ⇒ Object
65 66 67 |
# File 'lib/tools.rb', line 65 def self.pwd ENV['PWD'] end |
.set_check_version(param) ⇒ Object
22 23 24 |
# File 'lib/tools.rb', line 22 def self.set_check_version param @@check_version = param end |
.user ⇒ Object
61 62 63 |
# File 'lib/tools.rb', line 61 def self.user ENV['USER'] end |