module Tsudura::Runners::RunnerModule
Private Instance Methods
create_ami()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 15 def create_ami @ami = Tsudura::Aws::Ami.new(@tmp_instance_id, @config, @timestamp) @new_image_id = @ami.create end
create_launch_config()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 20 def create_launch_config @launch_config = Tsudura::Aws::LaunchConfig.new(@new_image_id, @config, @timestamp) @launch_config.create end
delete_old_launch_config()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 37 def delete_old_launch_config @launch_config.delete end
deregister_old_ami()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 33 def deregister_old_ami @ami.deregister end
launch_instance()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 6 def launch_instance @ec2 = Tsudura::Aws::LaunchInstance.new(@config) @tmp_instance_id = @ec2.launch end
provision()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 11 def provision Tsudura::Provisioner::Ansible::Command.exec @config end
terminate_tmp_ec2_instance()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 29 def terminate_tmp_ec2_instance @ec2.terminate end
update_auto_scaling_group()
click to toggle source
# File lib/tsudura/runners/runner_module.rb, line 25 def update_auto_scaling_group Tsudura::Aws::AutoScale.new(@config, @timestamp).update end