Skip to content
Merged
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
17 changes: 9 additions & 8 deletions lib/aws_ec2_environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
require "socket"
require "yaml"

require_relative "aws_ec2_environment/ssm_port_forwarding_session"
require_relative "aws_ec2_environment/ci_service"
require_relative "aws_ec2_environment/config"
require_relative "aws_ec2_environment/version"

class AwsEc2Environment
class BastionNotExpectedError < StandardError; end
class BastionNotFoundError < StandardError; end
class EnvironmentConfigNotFound < StandardError; end
class Error < StandardError; end
class BastionNotExpectedError < Error; end
class BastionNotFoundError < Error; end
class EnvironmentConfigNotFound < Error; end

require_relative "aws_ec2_environment/ssm_port_forwarding_session"
require_relative "aws_ec2_environment/ci_service"
require_relative "aws_ec2_environment/config"
require_relative "aws_ec2_environment/version"

attr_reader :config

Expand Down
6 changes: 3 additions & 3 deletions lib/aws_ec2_environment/ssm_port_forwarding_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

class AwsEc2Environment
class SsmPortForwardingSession
class SessionIdNotFoundError < StandardError; end
class SessionTimedOutError < StandardError; end
class SessionProcessError < StandardError; end
class SessionIdNotFoundError < Error; end
class SessionTimedOutError < Error; end
class SessionProcessError < Error; end

# @return [String]
attr_reader :instance_id
Expand Down
9 changes: 6 additions & 3 deletions sig/aws_ec2_environment.rbs
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
class AwsEc2Environment
VERSION: String

class BastionNotExpectedError < StandardError
class Error < StandardError
end

class BastionNotFoundError < StandardError
class BastionNotExpectedError < Error
end

class EnvironmentConfigNotFound < StandardError
class BastionNotFoundError < Error
end

class EnvironmentConfigNotFound < Error
end

attr_reader config: Config
Expand Down
6 changes: 3 additions & 3 deletions sig/aws_ec2_environment/ssm_port_forwarding_session.rbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class AwsEc2Environment
class SsmPortForwardingSession
class SessionIdNotFoundError < StandardError
class SessionIdNotFoundError < Error
end

class SessionTimedOutError < StandardError
class SessionTimedOutError < Error
end

class SessionProcessError < StandardError
class SessionProcessError < Error
end

attr_reader instance_id: String
Expand Down