loe-icagent 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +30 -2
- data/Rakefile +60 -0
- data/VERSION +1 -1
- data/bin/icagent +2 -4
- data/icagent.gemspec +62 -0
- metadata +44 -3
data/README
CHANGED
@@ -1,2 +1,30 @@
|
|
1
|
-
icagent
|
2
|
-
|
1
|
+
= icagent
|
2
|
+
|
3
|
+
http://github.com/loe/icagent
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
Module for registering a node with iclassify.
|
8
|
+
|
9
|
+
== INSTALL:
|
10
|
+
|
11
|
+
sudo gem install loe-icagent
|
12
|
+
|
13
|
+
== LICENSE:
|
14
|
+
|
15
|
+
# Author:: Adam Jacob (<adam@hjksolutions.com>)
|
16
|
+
# Copyright:: Copyright (c) 2007 HJK Solutions, LLC
|
17
|
+
# License:: GNU General Public License version 2.1
|
18
|
+
#
|
19
|
+
# This program is free software; you can redistribute it and/or modify
|
20
|
+
# it under the terms of the GNU General Public License version 2.1
|
21
|
+
# as published by the Free Software Foundation.
|
22
|
+
#
|
23
|
+
# This program is distributed in the hope that it will be useful,
|
24
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
25
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
26
|
+
# GNU General Public License for more details.
|
27
|
+
#
|
28
|
+
# You should have received a copy of the GNU General Public License along
|
29
|
+
# with this program; if not, write to the Free Software Foundation, Inc.,
|
30
|
+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
data/Rakefile
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "icagent"
|
8
|
+
gem.summary = %Q{TODO}
|
9
|
+
gem.email = "andrew@andrewloe.com"
|
10
|
+
gem.homepage = "http://github.com/loe/icagent"
|
11
|
+
gem.authors = ["W. Andrew Loe III"]
|
12
|
+
gem.add_dependency("uuidtools", '= 1.0.7')
|
13
|
+
gem.add_dependency("rake", [">= 0.8.3"])
|
14
|
+
gem.add_dependency("launchy")
|
15
|
+
gem.add_dependency("builder")
|
16
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
+
end
|
18
|
+
|
19
|
+
rescue LoadError
|
20
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
21
|
+
end
|
22
|
+
|
23
|
+
require 'rake/testtask'
|
24
|
+
Rake::TestTask.new(:test) do |test|
|
25
|
+
test.libs << 'lib' << 'test'
|
26
|
+
test.pattern = 'test/**/*_test.rb'
|
27
|
+
test.verbose = true
|
28
|
+
end
|
29
|
+
|
30
|
+
begin
|
31
|
+
require 'rcov/rcovtask'
|
32
|
+
Rcov::RcovTask.new do |test|
|
33
|
+
test.libs << 'test'
|
34
|
+
test.pattern = 'test/**/*_test.rb'
|
35
|
+
test.verbose = true
|
36
|
+
end
|
37
|
+
rescue LoadError
|
38
|
+
task :rcov do
|
39
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
task :default => :test
|
45
|
+
|
46
|
+
require 'rake/rdoctask'
|
47
|
+
Rake::RDocTask.new do |rdoc|
|
48
|
+
if File.exist?('VERSION.yml')
|
49
|
+
config = YAML.load(File.read('VERSION.yml'))
|
50
|
+
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
51
|
+
else
|
52
|
+
version = ""
|
53
|
+
end
|
54
|
+
|
55
|
+
rdoc.rdoc_dir = 'rdoc'
|
56
|
+
rdoc.title = "icagent #{version}"
|
57
|
+
rdoc.rdoc_files.include('README*')
|
58
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
59
|
+
end
|
60
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/bin/icagent
CHANGED
@@ -24,10 +24,8 @@ require 'rubygems'
|
|
24
24
|
require File.dirname(__FILE__) + '/../lib/iclassify'
|
25
25
|
require 'optparse'
|
26
26
|
|
27
|
-
config = {
|
28
|
-
|
29
|
-
:server => 'https://ops.onehub.com'
|
30
|
-
}
|
27
|
+
config = {}
|
28
|
+
|
31
29
|
opts = OptionParser.new do |opts|
|
32
30
|
opts.banner = "Usage: #{$0} [-d DIR|-r FILE] (options)"
|
33
31
|
opts.on("-d DIRECTORY", "--directory DIRECTORY", "Path to icagent recipes") do |d|
|
data/icagent.gemspec
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{icagent}
|
5
|
+
s.version = "1.0.2"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["W. Andrew Loe III"]
|
9
|
+
s.date = %q{2009-07-22}
|
10
|
+
s.email = %q{andrew@andrewloe.com}
|
11
|
+
s.executables = ["icagent", "icsearch", "icwatcher"]
|
12
|
+
s.extra_rdoc_files = [
|
13
|
+
"README"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
"README",
|
17
|
+
"Rakefile",
|
18
|
+
"VERSION",
|
19
|
+
"bin/icagent",
|
20
|
+
"bin/icsearch",
|
21
|
+
"bin/icwatcher",
|
22
|
+
"icagent.gemspec",
|
23
|
+
"lib/iclassify.rb",
|
24
|
+
"lib/iclassify/agent.rb",
|
25
|
+
"lib/iclassify/client.rb",
|
26
|
+
"lib/iclassify/node.rb",
|
27
|
+
"recipes/00_facter.rb",
|
28
|
+
"recipes/01_default_class.rb",
|
29
|
+
"recipes/02_apache_server.rb",
|
30
|
+
"recipes/02_ec2.rb",
|
31
|
+
"recipes/02_mongrel_server.rb",
|
32
|
+
"recipes/02_puppet_env.rb",
|
33
|
+
"recipes/03_mysql_server.rb"
|
34
|
+
]
|
35
|
+
s.homepage = %q{http://github.com/loe/icagent}
|
36
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = %q{1.3.4}
|
39
|
+
s.summary = %q{TODO}
|
40
|
+
|
41
|
+
if s.respond_to? :specification_version then
|
42
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
43
|
+
s.specification_version = 3
|
44
|
+
|
45
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_runtime_dependency(%q<uuidtools>, ["= 1.0.7"])
|
47
|
+
s.add_runtime_dependency(%q<rake>, [">= 0.8.3"])
|
48
|
+
s.add_runtime_dependency(%q<launchy>, [">= 0"])
|
49
|
+
s.add_runtime_dependency(%q<builder>, [">= 0"])
|
50
|
+
else
|
51
|
+
s.add_dependency(%q<uuidtools>, ["= 1.0.7"])
|
52
|
+
s.add_dependency(%q<rake>, [">= 0.8.3"])
|
53
|
+
s.add_dependency(%q<launchy>, [">= 0"])
|
54
|
+
s.add_dependency(%q<builder>, [">= 0"])
|
55
|
+
end
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<uuidtools>, ["= 1.0.7"])
|
58
|
+
s.add_dependency(%q<rake>, [">= 0.8.3"])
|
59
|
+
s.add_dependency(%q<launchy>, [">= 0"])
|
60
|
+
s.add_dependency(%q<builder>, [">= 0"])
|
61
|
+
end
|
62
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loe-icagent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- W. Andrew Loe III
|
@@ -11,8 +11,47 @@ cert_chain: []
|
|
11
11
|
|
12
12
|
date: 2009-07-22 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: uuidtools
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.0.7
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.8.3
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: launchy
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: builder
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: "0"
|
54
|
+
version:
|
16
55
|
description:
|
17
56
|
email: andrew@andrewloe.com
|
18
57
|
executables:
|
@@ -25,10 +64,12 @@ extra_rdoc_files:
|
|
25
64
|
- README
|
26
65
|
files:
|
27
66
|
- README
|
67
|
+
- Rakefile
|
28
68
|
- VERSION
|
29
69
|
- bin/icagent
|
30
70
|
- bin/icsearch
|
31
71
|
- bin/icwatcher
|
72
|
+
- icagent.gemspec
|
32
73
|
- lib/iclassify.rb
|
33
74
|
- lib/iclassify/agent.rb
|
34
75
|
- lib/iclassify/client.rb
|