envirobly 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/envirobly/cli/main.rb +10 -0
- data/lib/envirobly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0baeb0d203dc1d0eb6b45c63b8ef52517d80d4ec7ebf22f0c8b0b5f460dfe955
|
4
|
+
data.tar.gz: 444b48b695e768e704e9fec2bf486062cddf39214fd8857a711011d1ac610b89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7027f768d962e9cf28366a19b8fe7587876b939b2daee02da281dda61b35d9dddecaa11f23067350fb15dcb0ba3331294c4cef9c9f0ce4d93cedb9275daedca5
|
7
|
+
data.tar.gz: e1ad2ea6499d5999bf264030e9bb1bf654461534d46717adc0ce351de7d92c9dde7145c46f5b211c4802d2f57ddee02cb022d4324b9e53d59bba9bb752ce5f48
|
data/lib/envirobly/cli/main.rb
CHANGED
@@ -9,6 +9,7 @@ class Envirobly::Cli::Main < Envirobly::Base
|
|
9
9
|
desc "deploy ENVIRONMENT", "Deploy to environment identified by name or URL"
|
10
10
|
method_option :commit, type: :string, default: "HEAD"
|
11
11
|
def deploy(environment)
|
12
|
+
abort_if_aws_cli_is_missing
|
12
13
|
Envirobly::Deployment.new environment, options
|
13
14
|
end
|
14
15
|
|
@@ -16,4 +17,13 @@ class Envirobly::Cli::Main < Envirobly::Base
|
|
16
17
|
def set_access_token(token)
|
17
18
|
Envirobly::AccessToken.new(token).save
|
18
19
|
end
|
20
|
+
|
21
|
+
private
|
22
|
+
def abort_if_aws_cli_is_missing
|
23
|
+
`command -v aws`
|
24
|
+
unless $?.success?
|
25
|
+
$stderr.puts "AWS CLI is missing. Please install it first: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html"
|
26
|
+
exit 1
|
27
|
+
end
|
28
|
+
end
|
19
29
|
end
|
data/lib/envirobly/version.rb
CHANGED