class ZAWS::External::AWSCLI::Commands::AWS
Public Class Methods
new(subcommand=nil)
click to toggle source
# File lib/zaws/external/awscli/commands/aws.rb, line 6 def initialize(subcommand=nil) @subcommand=subcommand @output=nil @region=nil self end
Public Instance Methods
get_command()
click to toggle source
# File lib/zaws/external/awscli/commands/aws.rb, line 28 def get_command command = "aws " command = "#{command}--output #{@output} " if @output command = "#{command}--region #{@region} " if @region command = "#{command}#{@subcommand.get_command}" if @subcommand return command.strip end
output(output)
click to toggle source
# File lib/zaws/external/awscli/commands/aws.rb, line 13 def output(output) @output=output self end
region(region)
click to toggle source
# File lib/zaws/external/awscli/commands/aws.rb, line 18 def region(region) @region=region self end
subcommand(subcommand)
click to toggle source
# File lib/zaws/external/awscli/commands/aws.rb, line 23 def subcommand(subcommand) @subcommand=subcommand self end