mushin 0.0.0.pre57 → 0.0.0.pre58
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/bin/mushin +28 -19
- 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: 0b4d3b186d6bb4053e5d16eb65f9a1becccb3148
|
4
|
+
data.tar.gz: fc7ed105da72a9b766f5882526f90bfea991d5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 237b929bb37c36213ef34fd522960a3f14677c95247e853f7b69ea9dd9b0e495265ca7912616ee7c3563ac52e85282fb6c6298681039c471fd0a25c36d620b40
|
7
|
+
data.tar.gz: 4fc2c5c7b866a1b183ac8121feecdda804eaa697e1a2e0e7d83e7380aca0d8a4e6e123df1a5cbde4e72830e1c2205ea611d785f7baca4bea8f2a02228495ebf6
|
data/bin/mushin
CHANGED
@@ -3,14 +3,19 @@ require 'fileutils'
|
|
3
3
|
require 'optparse'
|
4
4
|
|
5
5
|
subtext = <<HELP
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
|
12
|
-
|
13
|
-
|
6
|
+
|
7
|
+
_ _
|
8
|
+
| | (_)
|
9
|
+
_ __ ___ _ _ ___| |__ _ _ __
|
10
|
+
| '_ ` _ \| | | / __| '_ \| | '_ \
|
11
|
+
| | | | | | |_| \__ \ | | | | | | |
|
12
|
+
|_| |_| |_|\__,_|___/_| |_|_|_| |_|
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Usage: mushin [command] [options]
|
17
|
+
|
18
|
+
|
14
19
|
Commonly used command are:
|
15
20
|
config : generats mushin config.rb i.e. rubygems & github authentications
|
16
21
|
roll : roll your own framework
|
@@ -18,13 +23,15 @@ Commonly used command are:
|
|
18
23
|
HELP
|
19
24
|
|
20
25
|
global = OptionParser.new do |opts|
|
21
|
-
opts.banner = "
|
26
|
+
opts.banner = "In the beginner's mind there are many possibilities, in the expert's mind there are few!"
|
22
27
|
opts.separator ""
|
23
28
|
opts.separator subtext
|
24
29
|
end
|
25
30
|
global.order!
|
26
31
|
command = ARGV.shift
|
27
|
-
|
32
|
+
|
33
|
+
case command
|
34
|
+
when "roll"
|
28
35
|
module Mushin
|
29
36
|
class << self
|
30
37
|
@@configs = {}
|
@@ -324,14 +331,16 @@ end
|
|
324
331
|
eos
|
325
332
|
df.close
|
326
333
|
|
327
|
-
|
328
|
-
`gem build #{@ds.downcase}/#{@ds.downcase}.gemspec`
|
329
|
-
`gem push #{@framework.downcase}-0.0.0.pre1.gem`
|
330
|
-
`rm #{@framework.downcase}`
|
331
|
-
`gem push #{@ds.downcase}-0.0.0.pre1.gem`
|
332
|
-
`rm #{@ds.downcase}`
|
333
|
-
end
|
334
|
-
|
335
|
-
if command == 'config'
|
334
|
+
when "config"
|
336
335
|
p "generating mushin's config.rb "
|
336
|
+
when "share"
|
337
|
+
`gem build #{@framework.downcase}/#{@framework.downcase}.gemspec`
|
338
|
+
`gem build #{@ds.downcase}/#{@ds.downcase}.gemspec`
|
339
|
+
`gem push #{@framework.downcase}-0.0.0.pre1.gem`
|
340
|
+
`gem push #{@ds.downcase}-0.0.0.pre1.gem`
|
341
|
+
when "clean"
|
342
|
+
`rm #{@framework.downcase-0.0.0.pre1.gem}`
|
343
|
+
`rm #{@ds.downcase-0.0.0.pre1.gem}`
|
344
|
+
else
|
345
|
+
puts "You just making it up! try mushin --help"
|
337
346
|
end
|