Class: EC2Launcher::InstancePathsConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/ec2launcher/instance_paths_config.rb

Overview

Holds data about paths to various executables on instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

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", "gem")
  @ruby_path = build_path(environment.ruby_path, "ruby", "ruby")
  @chef_path = build_path(environment.chef_path, "chef-client", "chef-client")
  @knife_path = build_path(environment.knife_path, "knife", "knife")
end

Instance Attribute Details

#chef_pathObject (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_pathObject (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_pathObject (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_pathObject (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