Module: Faucet::Version
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
Returns the value of attribute base_dir.
Instance Method Summary collapse
Instance Attribute Details
#base_dir ⇒ Object
Returns the value of attribute base_dir.
6 7 8 |
# File 'lib/capistrano/faucet/version.rb', line 6 def base_dir @base_dir end |
Instance Method Details
#load_version ⇒ Object
15 16 17 |
# File 'lib/capistrano/faucet/version.rb', line 15 def load_version Versionomy.parse File.read(File.join(Faucet::Version.base_dir, 'VERSION')).chomp end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/capistrano/faucet/version.rb', line 19 def to_s load_version.to_s end |