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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dc280b944283bd549516dd80fab598dff0c4e093f8d16dada2e8f3663c650ab
4
- data.tar.gz: b5aa5d9dbe07e35b00675830f900fa4a6ec7d29f894a9edb3ec780744bdf5123
3
+ metadata.gz: 0baeb0d203dc1d0eb6b45c63b8ef52517d80d4ec7ebf22f0c8b0b5f460dfe955
4
+ data.tar.gz: 444b48b695e768e704e9fec2bf486062cddf39214fd8857a711011d1ac610b89
5
5
  SHA512:
6
- metadata.gz: c5d4f46cc0904a036b5d7c8f16aa9eab588a5cd943bf650d98277a257138295183a6e5769944528044613f990ae9d18024066b07cbf69a6ba40619e43e88189d
7
- data.tar.gz: bc2f471d2b2e5f372cf52557154fc18ef9147c47592a1f9369bb28fceec129313226cf37668b71c954d5d8a8c92747abb34403b0bed892544f958b4cd2794eab
6
+ metadata.gz: 7027f768d962e9cf28366a19b8fe7587876b939b2daee02da281dda61b35d9dddecaa11f23067350fb15dcb0ba3331294c4cef9c9f0ce4d93cedb9275daedca5
7
+ data.tar.gz: e1ad2ea6499d5999bf264030e9bb1bf654461534d46717adc0ce351de7d92c9dde7145c46f5b211c4802d2f57ddee02cb022d4324b9e53d59bba9bb752ce5f48
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Envirobly
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: envirobly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Starsi