kumade 0.0.6 → 0.0.7
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.
- data/lib/kumade.rb +2 -0
- data/lib/kumade/deployer.rb +7 -5
- data/lib/kumade/version.rb +1 -1
- metadata +1 -1
data/lib/kumade.rb
CHANGED
data/lib/kumade/deployer.rb
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
require 'thor/shell'
|
2
|
-
require 'rake'
|
3
|
-
|
4
1
|
module Kumade
|
5
2
|
class Deployer < Thor::Shell::Color
|
6
3
|
DEPLOY_BRANCH = "deploy"
|
@@ -28,13 +25,13 @@ module Kumade
|
|
28
25
|
|
29
26
|
def git_push(remote)
|
30
27
|
run_or_error("git push #{remote} master",
|
31
|
-
|
28
|
+
"Failed to push master -> #{remote}")
|
32
29
|
success("Pushed master -> #{remote}")
|
33
30
|
end
|
34
31
|
|
35
32
|
def git_force_push(remote)
|
36
33
|
run_or_error("git push -f #{remote} master",
|
37
|
-
|
34
|
+
"Failed to force push master -> #{remote}")
|
38
35
|
success("Force pushed master -> #{remote}")
|
39
36
|
end
|
40
37
|
|
@@ -179,6 +176,11 @@ module Kumade
|
|
179
176
|
end
|
180
177
|
end
|
181
178
|
|
179
|
+
def run(command)
|
180
|
+
say_status :run, command
|
181
|
+
system command
|
182
|
+
end
|
183
|
+
|
182
184
|
def announce(message)
|
183
185
|
say "==> #{message}"
|
184
186
|
end
|
data/lib/kumade/version.rb
CHANGED