capistrano-releases 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f576772197a855bce09ece4f0886056a0b348adf
4
- data.tar.gz: c8a7c0db269716dee53900117f70cb2db42c5ee9
3
+ metadata.gz: 42c8b02de2ee347d75131b77ed59df3d2f8ca392
4
+ data.tar.gz: 71d451dbfeb6ac72decab1c8e973d336b7a64294
5
5
  SHA512:
6
- metadata.gz: 77883e54409de8e099b7d83b9718d2aba263eecd511d6f5cf5be0eec6b367d86450e3178e7050f27343aaf75b06738d95c5dd44072c5d322aa9d48dd136f9516
7
- data.tar.gz: 9c6d41797623cebd8052ff02268ea83a8921ea9cfd510621e534da579f42142b927ed7e2b905cee225f1b8896f3ea99a4ab9baf7df82bfd5f9086bd0b50043c2
6
+ metadata.gz: aa4d61c892fee55dbe10e26c50ff658139e408c016c2273af00fe97e076464c5f557e3560649622dfe62268b3a6c8b162dd559feddaf2503d0aa1ba850267567
7
+ data.tar.gz: 13eca03654b74f18c1aaec90524475883b72995ccc0f53a0285ed20cd2742132811deb55970fc3c2a1f4c27c45703d49559855a2a51e60ca814e45d89e9a9a68
data/exe/releases CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
- require 'capistrano-releases'
4
+ require 'capistrano/releases'
5
5
 
6
6
  ::Capistrano::Releases::CLI.new.run
@@ -9,17 +9,17 @@ module Capistrano
9
9
  opts.banner = 'Usage: manager [options]'
10
10
 
11
11
  opts.on('-bBUCKET', '--bucket=BUCKET',
12
- 'S3 bucket to pull/push releases.') do |v|
12
+ 'S3 bucket to pull/push releases (required).') do |v|
13
13
  options[:bucket] = v
14
14
  end
15
15
 
16
16
  opts.on('-dDEPLOY_TO', '--deploy-to=DEPLOY_TO',
17
- 'App directory to deploy to.') do |v|
17
+ 'App directory to deploy to (required).') do |v|
18
18
  options[:deploy_to] = v
19
19
  end
20
20
 
21
21
  opts.on('-mMODE', '--mode=MODE',
22
- "Mode to run: 'push' or 'pull'") do |v|
22
+ "Mode to run: 'push' or 'pull' (required).") do |v|
23
23
  options[:mode] = v
24
24
  end
25
25
  end
@@ -27,14 +27,19 @@ module Capistrano
27
27
  parser.parse!
28
28
 
29
29
  unless options[:bucket]
30
- puts('-b or --bucket is a required option.') && exit(1)
30
+ puts("-b or --bucket is a required option.\n\n#{parser.help}")
31
+ exit(1)
31
32
  end
32
33
 
33
34
  unless options[:deploy_to]
34
- puts('-d or --deploy-to is a required option.') && exit(1)
35
+ puts("-d or --deploy-to is a required option.\n\n#{parser.help}")
36
+ exit(1)
35
37
  end
36
38
 
37
- puts('-m or --mode is a required option.') && exit(1) unless options[:mode]
39
+ unless options[:mode]
40
+ puts("-m or --mode is a required option.\n\n#{parser.help}")
41
+ exit(1)
42
+ end
38
43
 
39
44
  manager = ::Capistrano::Releases::Manager.new(options)
40
45
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Releases
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Remesch