vines-agent 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/{README → README.md} +18 -9
- data/Rakefile +6 -43
- data/bin/vines-agent +0 -0
- data/lib/vines/agent/version.rb +1 -1
- data/vines-agent.gemspec +31 -0
- metadata +69 -33
- data/test/rake_test_loader.rb +0 -17
data/Gemfile
ADDED
data/{README → README.md}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# Welcome to Vines Agent
|
2
2
|
|
3
3
|
Vines Agent executes shell commands sent by users on remote machines. Users are
|
4
4
|
authorized against an access control list before being allowed to run commands.
|
@@ -11,22 +11,31 @@ accounts.
|
|
11
11
|
|
12
12
|
Additional documentation can be found at www.getvines.org.
|
13
13
|
|
14
|
-
|
14
|
+
## Usage
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
```
|
17
|
+
$ gem install vines-agent
|
18
|
+
$ vines-agent init wonderland.lit
|
19
|
+
$ cd wonderland.lit && vines-agent start
|
20
|
+
```
|
19
21
|
|
20
|
-
|
22
|
+
## Dependencies
|
21
23
|
|
22
|
-
Vines Agent requires Ruby 1.9.
|
24
|
+
Vines Agent requires Ruby 1.9.3 or better. Instructions for installing the
|
23
25
|
needed OS packages, as well as Ruby itself, are available at
|
24
26
|
http://www.getvines.org/ruby.
|
25
27
|
|
26
|
-
|
28
|
+
## Development
|
29
|
+
|
30
|
+
```
|
31
|
+
$ script/bootstrap
|
32
|
+
$ script/tests
|
33
|
+
```
|
34
|
+
|
35
|
+
## Contact
|
27
36
|
|
28
37
|
* David Graham <david@negativecode.com>
|
29
38
|
|
30
|
-
|
39
|
+
## License
|
31
40
|
|
32
41
|
Vines Agent is released under the MIT license. Check the LICENSE file for details.
|
data/Rakefile
CHANGED
@@ -1,57 +1,20 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/clean'
|
3
3
|
require 'rake/testtask'
|
4
|
-
require 'rubygems/package_task'
|
5
|
-
require_relative 'lib/vines/agent/version'
|
6
4
|
|
7
|
-
|
8
|
-
s.name = "vines-agent"
|
9
|
-
s.version = Vines::Agent::VERSION
|
5
|
+
CLOBBER.include('pkg')
|
10
6
|
|
11
|
-
|
12
|
-
s.description = "Vines Agent executes shell commands sent by users after
|
13
|
-
authorizing them against an access control list, provided by the Vines Services
|
14
|
-
component. Manage a server as easily as chatting with a friend."
|
7
|
+
directory 'pkg'
|
15
8
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
s.files = FileList['[A-Z]*', '{bin,lib,conf}/**/*']
|
21
|
-
s.test_files = FileList["test/**/*"]
|
22
|
-
s.executables = %w[vines-agent]
|
23
|
-
s.require_path = "lib"
|
24
|
-
|
25
|
-
s.add_dependency "blather", "~> 0.5.12"
|
26
|
-
s.add_dependency "ohai", "~> 0.6.10"
|
27
|
-
s.add_dependency "session", "~> 3.1.0"
|
28
|
-
s.add_dependency "slave", "~> 1.3.0"
|
29
|
-
s.add_dependency "vines", ">= 0.4.0"
|
30
|
-
|
31
|
-
s.add_development_dependency "minitest"
|
32
|
-
s.add_development_dependency "rake"
|
33
|
-
|
34
|
-
s.required_ruby_version = '>= 1.9.2'
|
35
|
-
end
|
36
|
-
|
37
|
-
Gem::PackageTask.new(spec) do |pkg|
|
38
|
-
pkg.need_tar = true
|
39
|
-
end
|
40
|
-
|
41
|
-
module Rake
|
42
|
-
class TestTask
|
43
|
-
# use our custom test loader
|
44
|
-
def rake_loader
|
45
|
-
'test/rake_test_loader.rb'
|
46
|
-
end
|
47
|
-
end
|
9
|
+
desc 'Build distributable packages'
|
10
|
+
task :build => [:pkg] do
|
11
|
+
system 'gem build vines-agent.gemspec && mv vines-*.gem pkg/'
|
48
12
|
end
|
49
13
|
|
50
14
|
Rake::TestTask.new(:test) do |test|
|
51
15
|
test.libs << 'test'
|
52
|
-
test.libs << 'test/storage'
|
53
16
|
test.pattern = 'test/**/*_test.rb'
|
54
17
|
test.warning = false
|
55
18
|
end
|
56
19
|
|
57
|
-
task :default => [:clobber, :test, :
|
20
|
+
task :default => [:clobber, :test, :build]
|
data/bin/vines-agent
CHANGED
File without changes
|
data/lib/vines/agent/version.rb
CHANGED
data/vines-agent.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require './lib/vines/agent/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = 'vines-agent'
|
5
|
+
s.version = Vines::Agent::VERSION
|
6
|
+
|
7
|
+
s.summary = %q[An XMPP bot that runs shell commands on remote machines.]
|
8
|
+
s.description = %q[Execute shell commands, authorizing them against a vines-services access control list.]
|
9
|
+
|
10
|
+
s.authors = ['David Graham']
|
11
|
+
s.email = %w[david@negativecode.com]
|
12
|
+
s.homepage = 'http://www.getvines.org'
|
13
|
+
s.license = 'MIT'
|
14
|
+
|
15
|
+
s.files = Dir['[A-Z]*', 'vines-agent.gemspec', '{bin,lib,conf}/**/*'] - ['Gemfile.lock']
|
16
|
+
s.test_files = Dir['test/**/*']
|
17
|
+
|
18
|
+
s.executables = %w[vines-agent]
|
19
|
+
s.require_path = 'lib'
|
20
|
+
|
21
|
+
s.add_dependency 'blather', '~> 0.8.5'
|
22
|
+
s.add_dependency 'ohai', '~> 0.6.10'
|
23
|
+
s.add_dependency 'session', '~> 3.1.0'
|
24
|
+
s.add_dependency 'slave', '~> 1.3.0'
|
25
|
+
s.add_dependency 'vines', '>= 0.4.6'
|
26
|
+
|
27
|
+
s.add_development_dependency 'minitest', '~> 5.0.5'
|
28
|
+
s.add_development_dependency 'rake', '~> 10.1.0'
|
29
|
+
|
30
|
+
s.required_ruby_version = '>= 1.9.3'
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vines-agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,27 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blather
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.5
|
21
|
+
version: 0.8.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.8.5
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: ohai
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: 0.6.10
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.6.10
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: session
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: 3.1.0
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.1.0
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: slave
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,45 +69,62 @@ dependencies:
|
|
54
69
|
version: 1.3.0
|
55
70
|
type: :runtime
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.3.0
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: vines
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ! '>='
|
64
84
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.4.
|
85
|
+
version: 0.4.6
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.4.6
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: minitest
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
|
-
- -
|
99
|
+
- - ~>
|
75
100
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
101
|
+
version: 5.0.5
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 5.0.5
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: rake
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
|
-
- -
|
115
|
+
- - ~>
|
86
116
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
117
|
+
version: 10.1.0
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 10.1.0
|
126
|
+
description: Execute shell commands, authorizing them against a vines-services access
|
127
|
+
control list.
|
96
128
|
email:
|
97
129
|
- david@negativecode.com
|
98
130
|
executables:
|
@@ -100,9 +132,11 @@ executables:
|
|
100
132
|
extensions: []
|
101
133
|
extra_rdoc_files: []
|
102
134
|
files:
|
135
|
+
- Gemfile
|
103
136
|
- LICENSE
|
104
137
|
- Rakefile
|
105
|
-
- README
|
138
|
+
- README.md
|
139
|
+
- vines-agent.gemspec
|
106
140
|
- bin/vines-agent
|
107
141
|
- lib/vines/agent/agent.rb
|
108
142
|
- lib/vines/agent/command/init.rb
|
@@ -118,9 +152,9 @@ files:
|
|
118
152
|
- conf/certs/README
|
119
153
|
- conf/config.rb
|
120
154
|
- test/config_test.rb
|
121
|
-
- test/rake_test_loader.rb
|
122
155
|
homepage: http://www.getvines.org
|
123
|
-
licenses:
|
156
|
+
licenses:
|
157
|
+
- MIT
|
124
158
|
post_install_message:
|
125
159
|
rdoc_options: []
|
126
160
|
require_paths:
|
@@ -130,19 +164,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
130
164
|
requirements:
|
131
165
|
- - ! '>='
|
132
166
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.9.
|
167
|
+
version: 1.9.3
|
134
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
169
|
none: false
|
136
170
|
requirements:
|
137
171
|
- - ! '>='
|
138
172
|
- !ruby/object:Gem::Version
|
139
173
|
version: '0'
|
174
|
+
segments:
|
175
|
+
- 0
|
176
|
+
hash: 3149859287253873525
|
140
177
|
requirements: []
|
141
178
|
rubyforge_project:
|
142
|
-
rubygems_version: 1.8.
|
179
|
+
rubygems_version: 1.8.23
|
143
180
|
signing_key:
|
144
181
|
specification_version: 3
|
145
182
|
summary: An XMPP bot that runs shell commands on remote machines.
|
146
183
|
test_files:
|
147
184
|
- test/config_test.rb
|
148
|
-
- test/rake_test_loader.rb
|
data/test/rake_test_loader.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
|
3
|
-
# Use the latest MiniTest gem instead of the buggy
|
4
|
-
# version included with Ruby 1.9.2.
|
5
|
-
gem 'minitest'
|
6
|
-
|
7
|
-
# Load the test files from the command line.
|
8
|
-
|
9
|
-
ARGV.each do |f|
|
10
|
-
next if f =~ /^-/
|
11
|
-
|
12
|
-
if f =~ /\*/
|
13
|
-
FileList[f].to_a.each { |fn| require File.expand_path(fn) }
|
14
|
-
else
|
15
|
-
require File.expand_path(f)
|
16
|
-
end
|
17
|
-
end
|