Class: DNApi::Components::RubyVersion
- Inherits:
-
Object
- Object
- DNApi::Components::RubyVersion
show all
- Defined in:
- lib/dnapi/components/ruby.rb
Constant Summary
collapse
- NAME =
'Ruby'.freeze
- RUBYGEMS_VERSION =
'1.8.17'.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
#mysql_adapter ⇒ Object
This shit is used by old versions of cloud_cookbooks and we can’t remove it without breaking the ones that didn’t upgrade.
The latest versions of the cookbooks won’t use this anymore. To know how to specify a database adapter see DNApi::DbStack#adapter_for
45
46
47
|
# File 'lib/dnapi/components/ruby.rb', line 45
def mysql_adapter
'mysql'
end
|
#ruby_flavor ⇒ Object
31
32
33
|
# File 'lib/dnapi/components/ruby.rb', line 31
def ruby_flavor
'dev-lang/ruby'
end
|
#ruby_module ⇒ Object
35
36
37
|
# File 'lib/dnapi/components/ruby.rb', line 35
def ruby_module
'ruby18'
end
|
#ruby_version ⇒ Object
27
28
29
|
# File 'lib/dnapi/components/ruby.rb', line 27
def ruby_version
"#{version}_p#{patch_level}"
end
|
#rubygems_version ⇒ Object
23
24
25
|
# File 'lib/dnapi/components/ruby.rb', line 23
def rubygems_version
self.class::RUBYGEMS_VERSION
end
|