class ZAWS::AWSCLI::Commands::EC2::StopInstances
Public Class Methods
new(shellout, awscli)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/stop_instances.rb, line 7 def initialize(shellout, awscli) @shellout=shellout @awscli=awscli end
Public Instance Methods
execute(instanceid, region, textout=nil, verbose=nil)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/stop_instances.rb, line 12 def execute(instanceid, region, textout=nil, verbose=nil) comline="aws --output json --region #{region} ec2 stop-instances --instance-ids #{instanceid}" @shellout.cli(comline, verbose) end