finger-puppet 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/finger-puppet +7 -7
- data/finger-puppet.gemspec +1 -1
- data/lib/finger-puppet.rb +1 -1
- metadata +3 -3
data/bin/finger-puppet
CHANGED
@@ -5,18 +5,18 @@ require 'pathname'
|
|
5
5
|
# Show the man page
|
6
6
|
if ARGV.any? {|arg| arg =~ /help|--help|-h/}
|
7
7
|
root = Pathname.new(File.dirname(__FILE__)).parent.expand_path
|
8
|
-
command = "man #{root + 'man' + '
|
8
|
+
command = "man #{root + 'man' + 'finger-puppet.1'}"
|
9
9
|
exec(command)
|
10
10
|
end
|
11
11
|
|
12
|
-
# If we are running from the root of a
|
13
|
-
|
14
|
-
if
|
15
|
-
load
|
12
|
+
# If we are running from the root of a Finger-Puppet/Puppet repo, load the bundled finger-puppet.
|
13
|
+
fingerpuppet_binstub = Pathname.new(Dir.pwd) + 'bin' + 'finger-puppet'
|
14
|
+
if fingerpuppet_binstub.exist? and fingerpuppet_binstub.to_s != __FILE__
|
15
|
+
load fingerpuppet_binstub
|
16
16
|
exit
|
17
17
|
end
|
18
18
|
|
19
|
-
# Otherwise, load
|
19
|
+
# Otherwise, load finger-puppet from a gem as per usual.
|
20
20
|
begin
|
21
21
|
require 'finger-puppet'
|
22
22
|
rescue LoadError
|
@@ -27,4 +27,4 @@ end
|
|
27
27
|
command = ARGV.first
|
28
28
|
arguments = ARGV[1..-1]
|
29
29
|
|
30
|
-
|
30
|
+
Fingerpuppet.new.invoke(command, arguments)
|
data/finger-puppet.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "finger-puppet"
|
6
|
-
s.version = "0.3.
|
6
|
+
s.version = "0.3.2"
|
7
7
|
s.authors = ["Anthony Somerset"]
|
8
8
|
s.email = ["anthony@somersettechsolutions.co.uk"]
|
9
9
|
s.homepage = "http://github.com/anthonysomerset/finger-puppet"
|
data/lib/finger-puppet.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finger-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Somerset
|