Class: EC2Launcher::InstancePathsConfig
- Inherits:
-
Object
- Object
- EC2Launcher::InstancePathsConfig
- Defined in:
- lib/ec2launcher/instance_paths_config.rb
Overview
Holds data about paths to various executables on instances.
Instance Attribute Summary collapse
-
#chef_path ⇒ Object
readonly
Returns the value of attribute chef_path.
-
#gem_path ⇒ Object
readonly
Returns the value of attribute gem_path.
-
#knife_path ⇒ Object
readonly
Returns the value of attribute knife_path.
-
#ruby_path ⇒ Object
readonly
Returns the value of attribute ruby_path.
Instance Method Summary collapse
-
#initialize(environment) ⇒ InstancePathsConfig
constructor
A new instance of InstancePathsConfig.
Constructor Details
#initialize(environment) ⇒ InstancePathsConfig
Returns a new instance of InstancePathsConfig.
9 10 11 12 13 14 |
# File 'lib/ec2launcher/instance_paths_config.rb', line 9 def initialize(environment) @gem_path = build_path(environment.gem_path, "gem", "/usr/bin/gem") @ruby_path = build_path(environment.ruby_path, "ruby", "/usr/bin/ruby") @chef_path = build_path(environment.chef_path, "chef-client", "/usr/bin/chef-client") @knife_path = build_path(environment.knife_path, "knife", "/usr/bin/knife") end |
Instance Attribute Details
#chef_path ⇒ Object (readonly)
Returns the value of attribute chef_path.
7 8 9 |
# File 'lib/ec2launcher/instance_paths_config.rb', line 7 def chef_path @chef_path end |
#gem_path ⇒ Object (readonly)
Returns the value of attribute gem_path.
7 8 9 |
# File 'lib/ec2launcher/instance_paths_config.rb', line 7 def gem_path @gem_path end |
#knife_path ⇒ Object (readonly)
Returns the value of attribute knife_path.
7 8 9 |
# File 'lib/ec2launcher/instance_paths_config.rb', line 7 def knife_path @knife_path end |
#ruby_path ⇒ Object (readonly)
Returns the value of attribute ruby_path.
7 8 9 |
# File 'lib/ec2launcher/instance_paths_config.rb', line 7 def ruby_path @ruby_path end |