mothership 0.0.13 → 0.0.14
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/mothership/base.rb +3 -3
- data/lib/mothership/help.rb +2 -1
- data/lib/mothership/version.rb +1 -1
- metadata +4 -4
data/lib/mothership/base.rb
CHANGED
@@ -51,10 +51,10 @@ class Mothership
|
|
51
51
|
exit_status 1
|
52
52
|
end
|
53
53
|
|
54
|
-
# invoke a command with
|
55
|
-
def invoke(name, inputs = {})
|
54
|
+
# invoke a command with inputs
|
55
|
+
def invoke(name, inputs = {}, given = {})
|
56
56
|
if cmd = @@commands[name]
|
57
|
-
cmd.invoke(
|
57
|
+
cmd.invoke(given, inputs)
|
58
58
|
else
|
59
59
|
unknown_command(name)
|
60
60
|
end
|
data/lib/mothership/help.rb
CHANGED
@@ -207,7 +207,8 @@ class Mothership
|
|
207
207
|
end
|
208
208
|
|
209
209
|
def unknown_command(name)
|
210
|
-
$stderr.
|
210
|
+
$stderr.print "Unknown command '#{name.gsub("_", "-")}'. "
|
211
|
+
$stderr.puts "See 'help' for available commands."
|
211
212
|
exit_status 1
|
212
213
|
end
|
213
214
|
|
data/lib/mothership/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mothership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 14
|
10
|
+
version: 0.0.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-17 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|