mothership 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,10 +51,10 @@ class Mothership
51
51
  exit_status 1
52
52
  end
53
53
 
54
- # invoke a command with the given inputs
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({}, inputs)
57
+ cmd.invoke(given, inputs)
58
58
  else
59
59
  unknown_command(name)
60
60
  end
@@ -207,7 +207,8 @@ class Mothership
207
207
  end
208
208
 
209
209
  def unknown_command(name)
210
- $stderr.puts "Unknown command '#{name}'. See 'help' for available commands."
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
 
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
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-08 00:00:00 Z
18
+ date: 2012-08-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake