Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tuts/001-lightsail-gs/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-lightsail'
gem 'rspec', group: :test
14 changes: 14 additions & 0 deletions tuts/001-lightsail-gs/ruby/lightsail_wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-lightsail'
require 'logger'

class LightsailWrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
14 changes: 14 additions & 0 deletions tuts/001-lightsail-gs/ruby/scenario_getting_started.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'lightsail_wrapper'

def run_scenario
client = Aws::Lightsail::Client.new
wrapper = LightsailWrapper.new(client)
puts "Running Lightsail getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
13 changes: 13 additions & 0 deletions tuts/001-lightsail-gs/ruby/spec/lightsail_wrapper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../lightsail_wrapper'

RSpec.describe LightsailWrapper do
let(:client) { Aws::Lightsail::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/002-vpc-gs/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-ec2'
gem 'rspec', group: :test
14 changes: 14 additions & 0 deletions tuts/002-vpc-gs/ruby/ec2_wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-ec2'
require 'logger'

class Ec2Wrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
14 changes: 14 additions & 0 deletions tuts/002-vpc-gs/ruby/scenario_getting_started.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'ec2_wrapper'

def run_scenario
client = Aws::Ec2::Client.new
wrapper = Ec2Wrapper.new(client)
puts "Running Ec2 getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
13 changes: 13 additions & 0 deletions tuts/002-vpc-gs/ruby/spec/ec2_wrapper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../ec2_wrapper'

RSpec.describe Ec2Wrapper do
let(:client) { Aws::Ec2::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/003-s3-gettingstarted/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-s3'
gem 'rspec', group: :test
14 changes: 14 additions & 0 deletions tuts/003-s3-gettingstarted/ruby/s3_wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-s3'
require 'logger'

class S3Wrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
14 changes: 14 additions & 0 deletions tuts/003-s3-gettingstarted/ruby/scenario_getting_started.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 's3_wrapper'

def run_scenario
client = Aws::S3::Client.new
wrapper = S3Wrapper.new(client)
puts "Running S3 getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
13 changes: 13 additions & 0 deletions tuts/003-s3-gettingstarted/ruby/spec/s3_wrapper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../s3_wrapper'

RSpec.describe S3Wrapper do
let(:client) { Aws::S3::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/004-cloudmap-custom-attributes/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-servicediscovery'
gem 'rspec', group: :test
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'servicediscovery_wrapper'

def run_scenario
client = Aws::CloudMap::Client.new
wrapper = CloudMapWrapper.new(client)
puts "Running CloudMap getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-servicediscovery'
require 'logger'

class CloudMapWrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../servicediscovery_wrapper'

RSpec.describe CloudMapWrapper do
let(:client) { Aws::CloudMap::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/005-cloudfront-gettingstarted/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-cloudfront'
gem 'rspec', group: :test
14 changes: 14 additions & 0 deletions tuts/005-cloudfront-gettingstarted/ruby/cloudfront_wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-cloudfront'
require 'logger'

class CloudFrontWrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'cloudfront_wrapper'

def run_scenario
client = Aws::CloudFront::Client.new
wrapper = CloudFrontWrapper.new(client)
puts "Running CloudFront getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../cloudfront_wrapper'

RSpec.describe CloudFrontWrapper do
let(:client) { Aws::CloudFront::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/008-vpc-private-servers-gs/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-ec2'
gem 'rspec', group: :test
14 changes: 14 additions & 0 deletions tuts/008-vpc-private-servers-gs/ruby/ec2_wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-ec2'
require 'logger'

class Ec2Wrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
14 changes: 14 additions & 0 deletions tuts/008-vpc-private-servers-gs/ruby/scenario_getting_started.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'ec2_wrapper'

def run_scenario
client = Aws::Ec2::Client.new
wrapper = Ec2Wrapper.new(client)
puts "Running Ec2 getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
13 changes: 13 additions & 0 deletions tuts/008-vpc-private-servers-gs/ruby/spec/ec2_wrapper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../ec2_wrapper'

RSpec.describe Ec2Wrapper do
let(:client) { Aws::Ec2::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/009-vpc-ipam-gs/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-ec2'
gem 'rspec', group: :test
14 changes: 14 additions & 0 deletions tuts/009-vpc-ipam-gs/ruby/ec2_wrapper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-ec2'
require 'logger'

class Ec2Wrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
14 changes: 14 additions & 0 deletions tuts/009-vpc-ipam-gs/ruby/scenario_getting_started.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'ec2_wrapper'

def run_scenario
client = Aws::Ec2::Client.new
wrapper = Ec2Wrapper.new(client)
puts "Running Ec2 getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
13 changes: 13 additions & 0 deletions tuts/009-vpc-ipam-gs/ruby/spec/ec2_wrapper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../ec2_wrapper'

RSpec.describe Ec2Wrapper do
let(:client) { Aws::Ec2::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/010-cloudmap-service-discovery/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-servicediscovery'
gem 'rspec', group: :test
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative 'servicediscovery_wrapper'

def run_scenario
client = Aws::CloudMap::Client.new
wrapper = CloudMapWrapper.new(client)
puts "Running CloudMap getting started scenario..."
# TODO: setup, interact, teardown
puts "Scenario complete."
end

run_scenario if __FILE__ == $PROGRAM_NAME
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require 'aws-sdk-servicediscovery'
require 'logger'

class CloudMapWrapper
def initialize(client, logger: Logger.new($stdout))
@client = client
@logger = logger
end

# TODO: Add wrapper methods matching CLI tutorial actions
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

require_relative '../servicediscovery_wrapper'

RSpec.describe CloudMapWrapper do
let(:client) { Aws::CloudMap::Client.new(stub_responses: true) }
let(:wrapper) { described_class.new(client) }

it 'creates wrapper' do
expect(wrapper).not_to be_nil
end
end
3 changes: 3 additions & 0 deletions tuts/011-getting-started-batch-fargate/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'aws-sdk-batch'
gem 'rspec', group: :test
Loading
Loading