kumade 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require 'thor'
2
+
1
3
  require 'kumade/deployer'
2
4
  require 'kumade/thor_task'
3
5
 
@@ -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
- "Failed to push master -> #{remote}")
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
- "Failed to force push master -> #{remote}")
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
@@ -1,3 +1,3 @@
1
1
  module Kumade
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kumade
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gabe Berke-Williams