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 +4 -4
- data/exe/releases +1 -1
- data/lib/capistrano/releases/cli.rb +11 -6
- data/lib/capistrano/releases/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42c8b02de2ee347d75131b77ed59df3d2f8ca392
|
4
|
+
data.tar.gz: 71d451dbfeb6ac72decab1c8e973d336b7a64294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa4d61c892fee55dbe10e26c50ff658139e408c016c2273af00fe97e076464c5f557e3560649622dfe62268b3a6c8b162dd559feddaf2503d0aa1ba850267567
|
7
|
+
data.tar.gz: 13eca03654b74f18c1aaec90524475883b72995ccc0f53a0285ed20cd2742132811deb55970fc3c2a1f4c27c45703d49559855a2a51e60ca814e45d89e9a9a68
|
data/exe/releases
CHANGED
@@ -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(
|
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(
|
35
|
+
puts("-d or --deploy-to is a required option.\n\n#{parser.help}")
|
36
|
+
exit(1)
|
35
37
|
end
|
36
38
|
|
37
|
-
|
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
|
|