scatter_deploy 0.2.1 → 0.2.2
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/lib/scatter/cli.rb +2 -12
- data/lib/scatter.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: 0f8c3a516602937fa073e54e722f7aeb1327161d
|
4
|
+
data.tar.gz: 0822669679cdebffde417e79a6a31269912a8f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6351ad285d2e5644939160486c82e80d78b469dc6dea26f1dbac2a4bf456b361c4475c4cecd3e5696c72a594b90ddcb28c5fc09fba206895c93a2dbf62874eca
|
7
|
+
data.tar.gz: 5cb3d8860396d84c3f5585ffee9e71c86050544a83e903996814f512bf3a49b9067beead930f54a4b7f2c5d2a43d0dae01cfdb6db0f3a9062ec5fff9c19bc59e
|
data/lib/scatter/cli.rb
CHANGED
@@ -21,9 +21,8 @@ module Scatter
|
|
21
21
|
:desc => "Use a deploy script in the __shared directory. The project path will automatically be passed as an argument"
|
22
22
|
|
23
23
|
class_option :dry_run,
|
24
|
-
:aliases => "--dr",
|
25
24
|
:type => :boolean,
|
26
|
-
:desc => "Print
|
25
|
+
:desc => "Print 'success' if the command would have succeeded, otherwise an error message, without actually running the command."
|
27
26
|
|
28
27
|
desc "deploy", "Run a deploy routine. This is the default task."
|
29
28
|
def deploy
|
@@ -70,15 +69,6 @@ module Scatter
|
|
70
69
|
say Config.show
|
71
70
|
end
|
72
71
|
|
73
|
-
desc "exists", "Determine whether or not a deploy routine can be found"
|
74
|
-
def exists
|
75
|
-
begin
|
76
|
-
generate_command ? say("true") : abort("false")
|
77
|
-
rescue
|
78
|
-
abort "false"
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
72
|
no_tasks do
|
83
73
|
# Process aliases
|
84
74
|
def method_missing(method, *args)
|
@@ -139,7 +129,7 @@ module Scatter
|
|
139
129
|
abort "No deploy command found" unless command ||= generate_command
|
140
130
|
|
141
131
|
if options.dry_run
|
142
|
-
say "
|
132
|
+
say "success"
|
143
133
|
else
|
144
134
|
system "cd #{project_deploy_dir} && #{command}"
|
145
135
|
end
|
data/lib/scatter.rb
CHANGED