Class: Ec2::SaltCloud

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/ec2/salt_cloud.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger

#debug?, #logger, logger, #stderr, stderr

Constructor Details

#initializeSaltCloud

Returns a new instance of SaltCloud.



17
18
# File 'lib/ec2/salt_cloud.rb', line 17

def initialize
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



15
16
17
# File 'lib/ec2/salt_cloud.rb', line 15

def config
  @config
end

#hosts_file=(value) ⇒ Object

Sets the attribute hosts_file

Parameters:

  • value

    the value to set the attribute hosts_file to.



14
15
16
# File 'lib/ec2/salt_cloud.rb', line 14

def hosts_file=(value)
  @hosts_file = value
end

Instance Method Details

#runObject



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/ec2/salt_cloud.rb', line 20

def run
  init_working_dir
  copy_providers
  copy_profiles
  copy_master_config
  copy_deploy_scripts
  init_aws
  render_global_profiles
  render_local_profile
  run_salt_cloud
end