awx 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws/aws_profile.rb +8 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a70da9c44d12c97697cc367a07b3b7712a97ecd
|
4
|
+
data.tar.gz: 462f6f11fb00ef9d9da4e1660c7016baf104f23d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a1fc20264c00bd6235be0d3bbcdd8d50b72a29066ace036e92899abd5e868ea780b06f691707e42e1a3b5e01756ac4815c0d451deed3da21d6de3e4e1ab340f
|
7
|
+
data.tar.gz: 5bc6e29b5cea6504801fde37295f5c4c5676a8dea3855275ad218a3efce7f6a7b70650436f3c98e7c76ad3c335829ed6009132e60d2826b1dfe7a4c343c7d8cc
|
data/lib/aws/aws_profile.rb
CHANGED
@@ -68,7 +68,7 @@ module App
|
|
68
68
|
download_s3_ssh_users(true)
|
69
69
|
|
70
70
|
# Check the credentials exist.
|
71
|
-
if Blufin::Files::file_exists(FILE_AWS_CREDENTIALS)
|
71
|
+
if Blufin::Files::file_exists(FILE_AWS_CREDENTIALS) && false # TODO - REMOVE
|
72
72
|
@@credentials = App::AWSCredentials.new
|
73
73
|
profile = @@profile[PROFILE]
|
74
74
|
config = Blufin::Files::file_exists(FILE_AWS_CONFIG) ? ParseConfig.new(FILE_AWS_CONFIG) : nil
|
@@ -86,8 +86,10 @@ module App
|
|
86
86
|
errors << "aws-cli error. Cannot find #{profile}: #{Blufin::Terminal::format_invalid('aws_access_key_id')} in: #{Blufin::Terminal::format_directory(FILE_AWS_CREDENTIALS)}" if @@credentials.aws_key.nil?
|
87
87
|
errors << "aws-cli error. Cannot find #{profile}: #{Blufin::Terminal::format_invalid('aws_secret_access_key')} in: #{Blufin::Terminal::format_directory(FILE_AWS_CREDENTIALS)}" if @@credentials.aws_secret.nil?
|
88
88
|
else
|
89
|
+
@@credentials = nil # Just in case.
|
89
90
|
# Returns 'yes' if running on EC2 instance, 'no' if not.
|
90
91
|
return if `#{App::Opt::get_base_path}/#{App::Opt::OPT_PATH}/shell/ec2-check` == 'yes'
|
92
|
+
return
|
91
93
|
errors << "aws-cli error. Cannot find file: #{Blufin::Terminal::format_invalid(FILE_AWS_CREDENTIALS)}"
|
92
94
|
end
|
93
95
|
|
@@ -105,6 +107,11 @@ module App
|
|
105
107
|
# Convenience method to just get the profile name.
|
106
108
|
# @return string
|
107
109
|
def self.get_profile_name
|
110
|
+
|
111
|
+
# TODO - REMOVE
|
112
|
+
puts "\x1B[38;5;154m#{@@profile[PROFILE]}\x1B[0m \xe2\x86\x92 \x1B[38;5;240m#{@@credentials.inspect}"
|
113
|
+
puts
|
114
|
+
|
108
115
|
return nil if @@credentials.nil?
|
109
116
|
@@profile[PROFILE]
|
110
117
|
end
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
AWX_VERSION = '0.6.
|
1
|
+
AWX_VERSION = '0.6.3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Rannetsperger
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.7.
|
19
|
+
version: 1.7.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.7.
|
26
|
+
version: 1.7.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|