opskeleton 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -6,10 +6,10 @@ require 'net/http'
6
6
  # this is used for external node lookup in celestial puppet std provider
7
7
 
8
8
  node = ARGV[0]
9
+ host = node.split('.').first
9
10
 
10
- if(File.exists?("#{node}.yml"))
11
- host = node.split('.').first
12
- File.open("#{node}.yml").lines.each {|l| puts l}
11
+ if(File.exists?("#{host}.yml"))
12
+ File.open("#{host}.yml").lines.each {|l| puts l}
13
13
  else
14
14
  ip = ENV['SSH_CONNECTION'].split(' ').first
15
15
  httpcall = Net::HTTP.new(ip, 8082)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: