-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from 3pillarlabs/develop
Merge PR #194 to master
- Loading branch information
Showing
35 changed files
with
394 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,6 @@ validate: | |
fi; \ | ||
done; \ | ||
[ $$API_VERSION_CHANGED -eq 0 ] | ||
|
||
lint: | ||
bundle exec rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'hailstorm/model/helper/aws_region_helper' | ||
require 'hailstorm/model/helper/amazon_cloud_defaults' | ||
|
||
# AWS Region Helper | ||
module AwsRegionHelper | ||
|
||
NORTH_AMERICA = { code: 'North America', title: 'North America', regions: [] }.freeze | ||
|
||
EUROPE_MIDEAST_AFRICA = { code: 'Europe/Middle East/Africa', title: 'Europe/Middle East/Africa', regions: [] }.freeze | ||
|
||
ASIA_PACIFIC = { code: 'Asia Pacific', title: 'Asia Pacific', regions: [] }.freeze | ||
|
||
SOUTH_AMERICA = { code: 'South America', title: 'South America', regions: [] }.freeze | ||
|
||
def self.included(_klass) | ||
NORTH_AMERICA[:regions].push( | ||
{ code: 'us-east-1', title: 'US East (Northern Virginia)' }, | ||
{ code: 'us-east-2', title: 'US East (Ohio)' }, | ||
{ code: 'us-west-2', title: 'US West (Oregon)' }, | ||
{ code: 'us-west-1', title: 'US West (Northern California)' }, | ||
code: 'ca-central-1', title: 'Canada (Central)' | ||
) | ||
|
||
EUROPE_MIDEAST_AFRICA[:regions].push( | ||
{ code: 'eu-west-1', title: 'Europe (Ireland)' }, | ||
{ code: 'eu-west-2', title: 'Europe (London)' }, | ||
# { code: 'eu-north-1', title: 'Europe (Stockholm)' }, | ||
code: 'eu-central-1', title: 'Europe (Frankfurt)' | ||
# { code: 'eu-west-3', title: 'Europe (Paris)' }, | ||
# { code: 'me-south-1', title: 'Middle East (Bahrain)' }, | ||
) | ||
|
||
ASIA_PACIFIC[:regions].push( | ||
{ code: 'ap-southeast-1', title: 'Singapore' }, | ||
# { code: 'ap-east-2', title: 'Beijing' }, | ||
{ code: 'ap-southeast-2', title: 'Sydney' }, | ||
{ code: 'ap-northeast-1', title: 'Tokyo' }, | ||
{ code: 'ap-northeast-2', title: 'Seoul' }, | ||
# { code: 'ap-east-6', title: 'Mainland China (Ningxia)' }, | ||
{ code: 'ap-northeast-3', title: 'Osaka' }, | ||
code: 'ap-south-1', title: 'Mumbai' | ||
# { code: 'ap-east-1', title: 'Hong Kong' }, | ||
) | ||
|
||
SOUTH_AMERICA[:regions].push( | ||
code: 'sa-east-1', title: 'South America (São Paulo)' | ||
) | ||
# @return [Hailstorm::Model::Helper::AwsRegionHelper] | ||
def aws_region_helper | ||
@aws_region_helper ||= Hailstorm::Model::Helper::AwsRegionHelper.new | ||
end | ||
|
||
def aws_regions | ||
[NORTH_AMERICA, EUROPE_MIDEAST_AFRICA, ASIA_PACIFIC, SOUTH_AMERICA] | ||
aws_region_helper.aws_regions_graph | ||
end | ||
|
||
def default_region_node | ||
aws_region_helper.region_node(code: Hailstorm::Model::Helper::AmazonCloudDefaults::EC2_REGION) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
# Version | ||
module Hailstorm | ||
module Api | ||
VERSION = '1.0.12' | ||
VERSION = '1.0.13' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,3 +97,6 @@ validate: | |
|
||
release_version: | ||
@echo ${RELEASE_VERSION} | ||
|
||
lint: | ||
bundle exec rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
# Version | ||
module Hailstorm | ||
module Cli | ||
VERSION = '1.0.10' | ||
VERSION = '1.0.11' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.