raykit 0.0.62 → 0.0.63

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
  SHA256:
3
- metadata.gz: fcaf588676a0c9ab20f07fa09ad33123300507a2e3eae3447cb1e25814f0ba3b
4
- data.tar.gz: fd1958692075f1e889afb189aa764b2ee29d52064838779514770530ce4ad372
3
+ metadata.gz: 96f8ab7b13e47de4bb0232d31a4f4d19da6167999944895c7fb2d7523068a76f
4
+ data.tar.gz: 779a3a0226a71449f5e8d5a87a61b68ac8125f480a8f229bc3ec1a20b9931e40
5
5
  SHA512:
6
- metadata.gz: cf0bed251437d48fdfa50c36f64dc4581087c2cca4e55e29e6b14cf3b05274c110b6869acc7d1d5b7af727e085fe4618aa45e7ffa6fb06d5bdefd068e8ea0086
7
- data.tar.gz: 72f8a9d6ca7f51164a13f5ca4676d255757d812c8c4d226ce3f61114c2b2feefe15eef4f93a87537cdf91471df408727e69a85b8bdcacf69250df617992a3749
6
+ metadata.gz: a58a5f7064ca5c6b2645b7a61f047bfe17022eddfdbdd7bb6901a299742e03bde49aa91699e891b65b1064585d91e48e9ef22e68511eeee3524756c96f542875
7
+ data.tar.gz: 41f1dc73e0fb9eb62f5af02213eb5b3360619cca8306f243b6e75e7ef1f08a36dc7b7a588d1ce7b8f6c38fe1fbcbc3dfaec000d2608e7939c7fd918acae0f8ae
@@ -21,14 +21,14 @@ module Raykit
21
21
 
22
22
  def pull
23
23
  Dir.chdir(directory) do
24
- Raykit::run('git pull')
24
+ PROJECT.run('git pull')
25
25
  end
26
26
  end
27
27
 
28
28
  def rake(task)
29
29
  Dir.chdir(directory) do
30
30
  if(File.exist?('rakefile.rb'))
31
- Raykit::run("rake #{task}")
31
+ PROJECT.run("rake #{task}")
32
32
  else
33
33
  puts 'rakefile.rb not found'
34
34
  end
@@ -72,17 +72,21 @@ module Raykit
72
72
  end
73
73
 
74
74
  def run(command,quit_on_failure=true)
75
- cmd = Command.new(command)
76
- elapsed_str = Timer.get_elapsed_str(cmd.elapsed,0)
77
- if(cmd.exitstatus == 0)
78
- puts elapsed_str + " " + Rainbow(cmd.command).yellow.bright
79
- return elapsed_str + " " + cmd.command
75
+ if(command.kind_of?(Array))
76
+ command.each{|subcommand| run(subcommand,quit_on_failure)}
80
77
  else
81
- puts "\r\n" + cmd.command + "\r\n"
82
- system(cmd.command)
83
- puts ''
84
- if(quit_on_failure)
85
- abort Rainbow(elapsed_str).red.bright + " " + Rainbow(cmd.command).white
78
+ cmd = Command.new(command)
79
+ elapsed_str = Timer.get_elapsed_str(cmd.elapsed,0)
80
+ if(cmd.exitstatus == 0)
81
+ puts elapsed_str + " " + Rainbow(cmd.command).yellow.bright
82
+ return elapsed_str + " " + cmd.command
83
+ else
84
+ puts "\r\n" + cmd.command + "\r\n"
85
+ system(cmd.command)
86
+ puts ''
87
+ if(quit_on_failure)
88
+ abort Rainbow(elapsed_str).red.bright + " " + Rainbow(cmd.command).white
89
+ end
86
90
  end
87
91
  end
88
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.62
4
+ version: 0.0.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow