class ZAWS::External::AWSCLI::Commands::EC2::DeleteSecurityGroup
Public Class Methods
new(shellout=nil, awscli=nil)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_security_group.rb, line 7 def initialize(shellout=nil, awscli=nil) @shellout=shellout @awscli=awscli clear_settings self end
Public Instance Methods
aws()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_security_group.rb, line 35 def aws @aws ||= ZAWS::External::AWSCLI::Commands::AWS.new(self) @aws end
clear_settings()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_security_group.rb, line 14 def clear_settings() @group_id=nil self end
execute(verbose)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_security_group.rb, line 30 def execute(verbose) comline=@aws.get_command @shellout.cli(comline, verbose) end
get_command()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_security_group.rb, line 24 def get_command command = "ec2 delete-security-group" command = "#{command} --group-id #{@group_id}" if @group_id return command end
security_group_id(id)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_security_group.rb, line 19 def security_group_id(id) @group_id=id self end