opskeleton 0.1.6 → 0.1.7

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/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  # A sample Gemfile
2
2
  source "https://rubygems.org"
3
3
 
4
- gem "thor"
4
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,12 +1,24 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ opskeleton (0.1.6)
5
+ thor
6
+
1
7
  GEM
2
8
  remote: https://rubygems.org/
3
9
  specs:
4
- map (6.3.0)
10
+ coderay (1.0.9)
11
+ method_source (0.8.1)
12
+ pry (0.9.12)
13
+ coderay (~> 1.0.5)
14
+ method_source (~> 0.8)
15
+ slop (~> 3.4)
16
+ slop (3.4.4)
5
17
  thor (0.17.0)
6
18
 
7
19
  PLATFORMS
8
20
  ruby
9
21
 
10
22
  DEPENDENCIES
11
- map
12
- thor
23
+ opskeleton!
24
+ pry
@@ -19,7 +19,7 @@ module Opsk
19
19
  path = Dir.getwd
20
20
  directory path , artifact , :verbose => false
21
21
  empty_directory("#{artifact}/scripts")
22
- %w(lookup.sh run.sh).each do |s|
22
+ %w(lookup.rb run.sh).each do |s|
23
23
  template("templates/scripts/#{s}", "#{artifact}/scripts/#{s}")
24
24
  chmod("#{artifact}/scripts/#{s}", 0755)
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/opskeleton.gemspec CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.summary = %q{A generator for ops projects that include vagrant puppet and fpm}
13
13
  gem.homepage = "https://github.com/narkisr/opskeleton"
14
14
  gem.add_dependency('thor')
15
+ gem.add_development_dependency('pry')
15
16
 
16
17
  gem.files = `git ls-files`.split($/)
17
18
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'uri'
4
+ require 'net/http'
5
+
6
+ # this is used for external node lookup in celestial puppet std provider
7
+
8
+ node = ARGV[0]
9
+
10
+ if(File.exists?("#{node}.yml"))
11
+ File.open("#{node}.yml").lines.each {|l| puts l}
12
+ else
13
+ ip = ENV['SSH_CONNECTION'].split(' ').first
14
+ httpcall = Net::HTTP.new(ip, 8082)
15
+ resp, data = httpcall.get2("/registry/host/type/#{node}", 'Accept' => 'application/x-yaml')
16
+ puts resp.body
17
+ end
@@ -1,2 +1,2 @@
1
1
  puppet apply --modulepath=modules:static-modules manifests/site.pp\
2
- --node_terminus exec --external_nodes=`pwd`/scripts/lookup.sh --hiera_config hiera.yaml $@
2
+ --node_terminus exec --external_nodes=`pwd`/scripts/lookup.rb --hiera_config hiera.yaml $@
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.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: pry
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  description: A generator for ops projects that include vagrant puppet and fpm
31
47
  email:
32
48
  - narkisr@gmail.com
@@ -62,7 +78,7 @@ files:
62
78
  - templates/puppetfile.erb
63
79
  - templates/run.sh
64
80
  - templates/rvmrc.erb
65
- - templates/scripts/lookup.sh
81
+ - templates/scripts/lookup.rb
66
82
  - templates/scripts/run.sh
67
83
  - templates/spec.erb
68
84
  - templates/vagrant.erb
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
-
3
- export ip=`echo $SSH_CONNECTION | cut -d ' ' -f 1`
4
- wget --header "Accept: application/x-yaml" -q -O - "http://$ip:8082/registry/host/type/$1"