Class: Stalkedbybean::Terminate

Inherits:
Object
  • Object
show all
Defined in:
lib/stalkedbybean/terminate.rb

Class Method Summary collapse

Class Method Details

.parse_options(file_path, options) ⇒ Object



6
7
8
# File 'lib/stalkedbybean/terminate.rb', line 6

def self.parse_options(file_path, options)
  @options = Stalkedbybean::Parser.parse_options(file_path, options)
end

.terminate_environmentObject



10
11
12
13
14
# File 'lib/stalkedbybean/terminate.rb', line 10

def self.terminate_environment
  system(
   "eb terminate #{@options[:environment]} --all --profile #{@options[:aws_profile]} -r #{@options[:aws_region]}",
  )
end