shaman_cli 2.3.0 → 2.4.0

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
- SHA1:
3
- metadata.gz: baa915ecd05a3c6dc139a0a12cc80866d21e84e2
4
- data.tar.gz: 3c9505f8d2ca92721e4e1ae7e75dd07d2ba0208c
2
+ SHA256:
3
+ metadata.gz: c602a7b90c41da9f106a1ea4f8083236ed7fb6a98f53a151b2437afb37cc5dc2
4
+ data.tar.gz: 7496e37426f00e126174a048469a54c73f067659b45acc56d22c888c140e7094
5
5
  SHA512:
6
- metadata.gz: 322796711947e5a8475914abe401f53d97c63c20a61bdd49e6df6221a875ca5de7fe279b148158275d76cc6a0cb8fe4c1a18b4edf47f71f18d1eeec6d266d420
7
- data.tar.gz: 02cb4ec327e2c55b77a01bab71745363d3471d691f1ae7d6283c789774f08e65595a6ab100252d2a9409400c7533a85a7fd4fd3ff63a705c9313eddc864982df
6
+ metadata.gz: c9523681d506ccb6455feb3984e919fc277f9f448e55c470d8d052c56cfe2e9ece79ea4869b947800f24575d53c95fc0906b5bf4a3cdc2256aa9b43a0dfeed51
7
+ data.tar.gz: 8bb088fa399800d96ec60b3392f654156ca92c069b501e29d2324554fecd7d0271033092ed69b8a75632583324270bda3c230e753cbd8ead356363f83a3c11a7
data/lib/shaman/deploy.rb CHANGED
@@ -3,7 +3,7 @@ module Shaman
3
3
  include Helpers
4
4
 
5
5
  def initialize(args, options)
6
- error!('Must specify environment') if args.count != 1
6
+ error!('Must specify environment') if args.count < 1
7
7
  @environment = args.first
8
8
  @options = options
9
9
  verify_options
@@ -12,7 +12,7 @@ module Shaman
12
12
  def deploy
13
13
  prompt.ok "Connecting to #{LABS_URL}/api/v1/releases"
14
14
  response = HTTP.post("#{LABS_URL}/api/v1/releases", form: deploy_options)
15
- response.code == 200 ? prompt.ok(response.body.to_s) : prompt.error(response.body.to_s)
15
+ response.code == 200 ? prompt.ok(response.body.to_s) : error!(response.body.to_s)
16
16
  end
17
17
 
18
18
  private
@@ -1,3 +1,3 @@
1
1
  module Shaman
2
- VERSION = '2.3.0'.freeze
2
+ VERSION = '2.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shaman_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-29 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.6.11
170
+ rubygems_version: 2.7.3
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Command tool for labs