Module: Tapjoy::AutoscalingBootstrap::EC2

Defined in:
lib/tapjoy/autoscaling_bootstrap/ec2.rb

Overview

This class contains tass methods for EC2

Class Method Summary collapse

Class Method Details

.count_static_instances(config) ⇒ Object



6
7
8
# File 'lib/tapjoy/autoscaling_bootstrap/ec2.rb', line 6

def count_static_instances(config)
  find_static_instances(config).length
end

.disable_termination_protection(instance_id) ⇒ Object



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

def disable_termination_protection(instance_id)
  Tapjoy::AutoscalingBootstrap::AWS::EC2.toggle_termination_protection(instance_id, 'false')
end

.enable_termination_protection(instance_id) ⇒ Object



10
11
12
# File 'lib/tapjoy/autoscaling_bootstrap/ec2.rb', line 10

def enable_termination_protection(instance_id)
  Tapjoy::AutoscalingBootstrap::AWS::EC2.toggle_termination_protection(instance_id, 'true')
end