fuelcell 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/test +6 -3
- data/lib/fuelcell/cli.rb +4 -1
- data/lib/fuelcell/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWVhMjk5MTZmYmRkMmU5YjRmZWUwZjk0ZmMwZTdmMWI5ZmRkYjQxOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTMwMWQ5ZmEzMTU2ZmJjYjM4YTVhNGNjZjk2ZGE0MDU5NjkwNDVmZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWE5MjgxMzZiNDdlNWU0NjY1NmU1OTRjZDkyNzg2OThhMjVjZWFlOTgxMzI3
|
10
|
+
NGMwMmY5ZTNiM2IyNjRmMzM5ZTUxNmI3MGU4MzE0Y2EwYTBjZmEwODg3OTUz
|
11
|
+
Y2RkNTQ3MzYwODA0ODBjYjgwOGZhMGYwOGZlNGNlYzgxMGQ0NmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTY5NDU2ZWRlZjc0NjFkNWM1Mzg2YTIyYzA5ZWI2YmQwNzA2Nzc5NjdkOGE4
|
14
|
+
YTg4MDNiODU2NzM0YzBhYTVmYjIwMGQxMWU1Y2JiNzM2MDYyZGJiNWNiYzhj
|
15
|
+
Nzk3ZDUxMzcyZTkxMTljZGMwZDlhNTZmYTg1MGYwYWRkNjFmYjg=
|
data/bin/test
CHANGED
@@ -7,14 +7,17 @@ require "fuelcell"
|
|
7
7
|
Fuelcell.start(ARGV.dup, backtrace: true) do
|
8
8
|
require_relative 'example'
|
9
9
|
desc 'this is an example of how a commands work with fuelcell'
|
10
|
-
opt 'all|a', banner: 'all of something'
|
10
|
+
opt 'all|a', banner: 'all of something', cmd_path: 'fiz'
|
11
11
|
arg 'foo', required: true
|
12
|
-
|
12
|
+
|
13
|
+
run ->(opts, args, shell) {
|
13
14
|
shell.puts "testing #{args.foo}"
|
14
15
|
}
|
15
16
|
command 'fiz' do
|
16
17
|
opt 'blah'
|
17
18
|
desc 'the fiz command'
|
18
|
-
|
19
|
+
run -> (opts, args, shell) {
|
20
|
+
shell.puts "blah"
|
21
|
+
}
|
19
22
|
end
|
20
23
|
end
|
data/lib/fuelcell/cli.rb
CHANGED
@@ -72,7 +72,10 @@ module Fuelcell
|
|
72
72
|
opt_manager = cmd.opts
|
73
73
|
opt = opt_manager.callable
|
74
74
|
return cmd unless opt
|
75
|
-
|
75
|
+
if opt.cmd_path?
|
76
|
+
path = opt.cmd_path.split(' ')
|
77
|
+
return root.locate(path)
|
78
|
+
end
|
76
79
|
opt
|
77
80
|
end
|
78
81
|
|
data/lib/fuelcell/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuelcell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Scott-Buccleuch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|