moose-inventory 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Guardfile +1 -1
  4. data/README.md +69 -6
  5. data/bin/moose-inventory +10 -0
  6. data/config/dotfiles/gitignore +1 -0
  7. data/lib/{moose/inventory/moose_inventory_cli.rb → moose_inventory.rb} +3 -3
  8. data/lib/{moose/inventory → moose_inventory}/cli/application.rb +0 -0
  9. data/lib/{moose/inventory → moose_inventory}/cli/formatter.rb +0 -0
  10. data/lib/{moose/inventory → moose_inventory}/cli/group.rb +0 -0
  11. data/lib/{moose/inventory → moose_inventory}/cli/group_add.rb +0 -0
  12. data/lib/{moose/inventory → moose_inventory}/cli/group_addchild.rb +0 -0
  13. data/lib/{moose/inventory → moose_inventory}/cli/group_addhost.rb +0 -0
  14. data/lib/{moose/inventory → moose_inventory}/cli/group_addvar.rb +0 -0
  15. data/lib/{moose/inventory → moose_inventory}/cli/group_get.rb +0 -0
  16. data/lib/{moose/inventory → moose_inventory}/cli/group_list.rb +0 -0
  17. data/lib/{moose/inventory → moose_inventory}/cli/group_rm.rb +0 -0
  18. data/lib/{moose/inventory → moose_inventory}/cli/group_rmchild.rb +0 -0
  19. data/lib/{moose/inventory → moose_inventory}/cli/group_rmhost.rb +0 -0
  20. data/lib/{moose/inventory → moose_inventory}/cli/group_rmvar.rb +0 -0
  21. data/lib/{moose/inventory → moose_inventory}/cli/host.rb +0 -0
  22. data/lib/{moose/inventory → moose_inventory}/cli/host_add.rb +0 -0
  23. data/lib/{moose/inventory → moose_inventory}/cli/host_addgroup.rb +0 -0
  24. data/lib/{moose/inventory → moose_inventory}/cli/host_addvar.rb +0 -0
  25. data/lib/{moose/inventory → moose_inventory}/cli/host_get.rb +0 -0
  26. data/lib/{moose/inventory → moose_inventory}/cli/host_list.rb +0 -0
  27. data/lib/{moose/inventory → moose_inventory}/cli/host_rm.rb +0 -0
  28. data/lib/{moose/inventory → moose_inventory}/cli/host_rmgroup.rb +0 -0
  29. data/lib/{moose/inventory → moose_inventory}/cli/host_rmvar.rb +0 -0
  30. data/lib/{moose/inventory → moose_inventory}/config/config.rb +0 -0
  31. data/lib/{moose/inventory → moose_inventory}/db/db.rb +0 -0
  32. data/lib/{moose/inventory → moose_inventory}/db/exceptions.rb +0 -0
  33. data/lib/{moose/inventory → moose_inventory}/db/models.rb +0 -0
  34. data/lib/moose_inventory/version.rb +7 -0
  35. data/moose-inventory.gemspec +1 -1
  36. data/scripts/files.rb +18 -0
  37. data/spec/lib/{moose/inventory → moose_inventory}/cli/application_spec.rb +0 -0
  38. data/spec/lib/{moose/inventory → moose_inventory}/cli/cli_spec.rb +0 -0
  39. data/spec/lib/{moose/inventory → moose_inventory}/cli/formatter_spec.rb +0 -0
  40. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_add_spec.rb +0 -0
  41. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_addhost_spec.rb +0 -0
  42. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_addvar_spec.rb +0 -0
  43. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_get_spec.rb +0 -0
  44. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_list_spec.rb +0 -0
  45. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_rm_spec.rb +0 -0
  46. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_rmhost_spec.rb +0 -0
  47. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_rmvar_spec.rb +0 -0
  48. data/spec/lib/{moose/inventory → moose_inventory}/cli/group_spec.rb +0 -0
  49. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_add_spec.rb +0 -0
  50. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_addgroup_spec.rb +0 -0
  51. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_addvar_spec.rb +0 -0
  52. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_get_spec.rb +0 -0
  53. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_list_spec.rb +0 -0
  54. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_rm_spec.rb +0 -0
  55. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_rmgroup_spec.rb +0 -0
  56. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_rmvar_spec.rb +0 -0
  57. data/spec/lib/{moose/inventory → moose_inventory}/cli/host_spec.rb +0 -0
  58. data/spec/lib/{moose/inventory → moose_inventory}/config/config_spec.rb +0 -0
  59. data/spec/lib/{moose/inventory → moose_inventory}/db/db_spec.rb +0 -0
  60. data/spec/lib/{moose/inventory → moose_inventory}/db/models_spec.rb +0 -0
  61. data/spec/spec_helper.rb +2 -2
  62. metadata +80 -83
  63. data/bin/.buildpath +0 -5
  64. data/bin/.project +0 -17
  65. data/bin/moose_inventory +0 -10
  66. data/lib/moose/inventory/version.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ae525b63b01fa467335121abcfc387da59cdb12
4
- data.tar.gz: 7737d54dfed69d5c804a26792d82c19264aae0f6
3
+ metadata.gz: 9406c59a0185749227febf07cb62cb0e3d273955
4
+ data.tar.gz: 063fba0f37a46d48ce9f4be6aee93ba3cd3d32e4
5
5
  SHA512:
6
- metadata.gz: d7dd1233f73280f6d9b7135c25b37abe4e4db23cc9dec8d2f768e092d08c83d567222845811129729d772db2cc68fda518873cdac75231e00a8d590a9756b7f5
7
- data.tar.gz: 3c335922f0f578bd8e37a2b36875c17d843886e3a005687b349a8ed832fbe792187debb164135e3eda9b70c6a7bd304c29d5006f1490b88eb0dbfd5ff2996700
6
+ metadata.gz: 756f88cac996b96406384956ae9c70508fe4cbdf80565a188fab545a4cf5d52ee92fbef20acde57565f2bfa42b1d8ddaf0bb4a5e238ab232398be93376402d30
7
+ data.tar.gz: d696b2bfba34799daba4181d21c028785a97ff020367efa8e2b4b5fc857e2c453947802a63e52db3d23fb4cbf05b79f5d63fb189c3635a83da567e137e337afb
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ mkmf.log
15
15
  .buildpath
16
16
  .project
17
17
  /coverage/
18
+ *.gem
data/Guardfile CHANGED
@@ -19,7 +19,7 @@ group 'quality' do
19
19
  end
20
20
 
21
21
  group 'test' do
22
- cmd = 'bundle exec rspec -I lib/moose/inventory -I spec '\
22
+ cmd = 'bundle exec rspec -I lib/moose_inventory -I spec '\
23
23
  '--color --format html --out spec/reports/test/rspec.html'
24
24
  guard :rspec, cmd: cmd do
25
25
  require 'guard/rspec/dsl'
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Moose::Inventory
2
2
 
3
- TODO: Write a gem description
3
+ The [moose-inventory](https://github.com/RusDavies/moose-inventory) Ruby Gem is a package for managing dynamic inventories, intended for use with [Ansible](http://www.ansible.com/home).
4
+
5
+ Note: This software is intended for use on UNIX, Linux, or similar systems. It will likely not work on Windows, due to some hard-wired search paths - I may fix that in the future, but for now, sorry.
4
6
 
5
7
  ## Installation
6
8
 
@@ -13,19 +15,80 @@ gem 'moose-inventory'
13
15
  And then execute:
14
16
 
15
17
  $ bundle
16
-
17
18
  Or install it yourself as:
18
19
 
19
20
  $ gem install moose-inventory
20
21
 
22
+ ## Configuration
23
+ The [moose-inventory](https://github.com/RusDavies/moose-inventory) tool makes use of a simple YAML configuration file.
24
+
25
+
26
+ ###Location
27
+
28
+ The following locations, in descending order of precedence, are searched for a configuration file:
29
+ 1. location passed via the *config* CLI option
30
+ 2. ./.moose-tools/inventory/config
31
+ 4. ~/.moose-tools/inventory/config
32
+ 5. ~/local/etc/moose-tools/inventory/config
33
+ 6. /etc/moose-tools/inventory/config
34
+
35
+ ###Format
36
+ The file contains a mandatory general section, and at least one environment section. For example:
37
+ ```yaml
38
+ ---
39
+ general:
40
+ defaultenv: moose_dev
41
+
42
+ moose_dev:
43
+ db:
44
+ adapter: "sqlite3"
45
+ file: "~/.moose/db/dev.db"
46
+
47
+ moose_ops:
48
+ db:
49
+ adapter: "mysql"
50
+ host: "localhost"
51
+ database: "water"
52
+ user: "duck"
53
+ password: "quack"
54
+
55
+ another_example_section:
56
+ db:
57
+ adapter: "postgresql"
58
+ host: "localhost"
59
+ database: "grass"
60
+ user: "cow"
61
+ password: "moo"
62
+
63
+ ```
64
+
65
+ ###The 'general' section
66
+ The general section is mandatory, and contains a single parameter **defaultenv**, which points to the name of the default environment section. This is used in the case when no target environment is specified via the command line.
67
+
68
+ ###Environment sections
69
+ You may add as many environment sections as you desire. The intention is to enable the user to easily manage multiple environments, such as development, staging, production, etc., via a single configuration file. The name of each environment section must be unique, but can otherwise be any valid YAML tag.
70
+
71
+ At present, each environment section contains only a **db** subsection, describing the database connection parameters. Additional subsections may be added in the future, as functionality increases.
72
+
73
+ Each **db** section must include an **adapter** parameter. Currently supported adapter types are sqlite3, mysql, and postresql. Note, as a matter of portability, only sqlite3 has been exercised via the test suite.
74
+
75
+ Additional parameters are also required in the **db** subsection, depending on the adapter type. For the sqlite3 adapter only a **file** parameter is required. For both mysql and postgresql, then **host**, **database**, **user**, and **password** parameters are required.
76
+
77
+
21
78
  ## Usage
22
79
 
23
- TODO: Write usage instructions here
80
+ ##Missing features
81
+ The following desired features are yet to be implemented:
82
+ 1. Groups as children of groups:
83
+ -- Group model shall provide a many-to-many relationship to self.
84
+ -- CLI:Group shall provided an addchild method.
85
+ -- CLI:Group shall provided a rmchild method.
86
+ -- CLI:Group.get method shall display child group relationships.
87
+ -- CLI:Group.list method shall display child group relationships.
24
88
 
25
89
  ## Contributing
26
-
27
- 1. Fork it ( https://github.com/[my-github-username]/moose-inventory/fork )
28
- 2. Create your feature branch (`git checkout -b my-new-feature`)
90
+ 1. Fork it (https://github.com/RusDavies/moose-inventory/fork )
91
+ 2. Create your feature branch (git checkout -b my-new-feature`)
29
92
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
93
  4. Push to the branch (`git push origin my-new-feature`)
31
94
  5. Create a new Pull Request
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ begin
4
+ require 'moose_inventory'
5
+ rescue
6
+ require 'rubygems'
7
+ require 'moose_inventory'
8
+ end
9
+
10
+ Moose::Inventory::Cli.start(ARGV)
@@ -15,3 +15,4 @@ mkmf.log
15
15
  .buildpath
16
16
  .project
17
17
  /coverage/
18
+ *.gem
@@ -1,7 +1,7 @@
1
1
  require 'thor'
2
- require_relative './config/config.rb'
3
- require_relative './db/db.rb'
4
- require_relative './cli/application.rb'
2
+ require_relative './moose_inventory/config/config.rb'
3
+ require_relative './moose_inventory/db/db.rb'
4
+ require_relative './moose_inventory/cli/application.rb'
5
5
 
6
6
  module Moose
7
7
  module Inventory
File without changes
@@ -0,0 +1,7 @@
1
+ module Moose
2
+ ##
3
+ # The Moose-Tools dynamic inventory management library
4
+ module Inventory
5
+ VERSION = '0.1.2'
6
+ end
7
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  lib = File.expand_path('../lib', __FILE__)
5
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
- require 'moose/inventory/version'
6
+ require 'moose_inventory/version'
7
7
 
8
8
  Gem::Specification.new do |spec|
9
9
  spec.name = 'moose-inventory'
data/scripts/files.rb ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'yaml'
4
+
5
+ files = `git ls-files -z`.split("\x0")
6
+ executables = files.grep(%r{^bin/}) { |f| File.basename(f) }
7
+ test_files = files.grep(%r{^(test|spec|features)/})
8
+ require_paths = ['lib']
9
+
10
+ out = {}
11
+ out['Executables'.to_sym] = executables
12
+ out['Test_Files'.to_sym] = test_files
13
+ out['Require_Paths'.to_sym] = require_paths
14
+
15
+ puts "#{out.to_yaml}"
16
+
17
+
18
+
data/spec/spec_helper.rb CHANGED
@@ -25,14 +25,14 @@ if RUBY_VERSION >= '1.9'
25
25
  end
26
26
 
27
27
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__),
28
- '..', 'lib/moose/inventory'))
28
+ '..', 'lib/moose_inventory'))
29
29
 
30
30
  # require 'rdoc'
31
31
  require 'rspec'
32
32
  require 'json'
33
33
  require 'yaml'
34
34
  require 'find'
35
- require 'moose_inventory_cli'
35
+ require 'moose_inventory'
36
36
 
37
37
  RSpec.configure do |config|
38
38
  #config.filter_run focus: true # <- enable to allow test focus
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moose-inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Davies
@@ -252,9 +252,7 @@ description: The Moosecastle CLI tool for Ansible-compatable dynamic inventory m
252
252
  email:
253
253
  - russell@blakemere.ca
254
254
  executables:
255
- - ".buildpath"
256
- - ".project"
257
- - moose_inventory
255
+ - moose-inventory
258
256
  extensions: []
259
257
  extra_rdoc_files: []
260
258
  files:
@@ -267,69 +265,68 @@ files:
267
265
  - README.md
268
266
  - README.md.orig
269
267
  - Rakefile
270
- - bin/.buildpath
271
- - bin/.project
272
- - bin/moose_inventory
268
+ - bin/moose-inventory
273
269
  - config/dotfiles/coveralls.yml
274
270
  - config/dotfiles/gitignore
275
271
  - config/dotfiles/rubocop.yml
276
- - lib/moose/inventory/cli/application.rb
277
- - lib/moose/inventory/cli/formatter.rb
278
- - lib/moose/inventory/cli/group.rb
279
- - lib/moose/inventory/cli/group_add.rb
280
- - lib/moose/inventory/cli/group_addchild.rb
281
- - lib/moose/inventory/cli/group_addhost.rb
282
- - lib/moose/inventory/cli/group_addvar.rb
283
- - lib/moose/inventory/cli/group_get.rb
284
- - lib/moose/inventory/cli/group_list.rb
285
- - lib/moose/inventory/cli/group_rm.rb
286
- - lib/moose/inventory/cli/group_rmchild.rb
287
- - lib/moose/inventory/cli/group_rmhost.rb
288
- - lib/moose/inventory/cli/group_rmvar.rb
289
- - lib/moose/inventory/cli/host.rb
290
- - lib/moose/inventory/cli/host_add.rb
291
- - lib/moose/inventory/cli/host_addgroup.rb
292
- - lib/moose/inventory/cli/host_addvar.rb
293
- - lib/moose/inventory/cli/host_get.rb
294
- - lib/moose/inventory/cli/host_list.rb
295
- - lib/moose/inventory/cli/host_rm.rb
296
- - lib/moose/inventory/cli/host_rmgroup.rb
297
- - lib/moose/inventory/cli/host_rmvar.rb
298
- - lib/moose/inventory/config/config.rb
299
- - lib/moose/inventory/db/db.rb
300
- - lib/moose/inventory/db/exceptions.rb
301
- - lib/moose/inventory/db/models.rb
302
- - lib/moose/inventory/moose_inventory_cli.rb
303
- - lib/moose/inventory/version.rb
272
+ - lib/moose_inventory.rb
273
+ - lib/moose_inventory/cli/application.rb
274
+ - lib/moose_inventory/cli/formatter.rb
275
+ - lib/moose_inventory/cli/group.rb
276
+ - lib/moose_inventory/cli/group_add.rb
277
+ - lib/moose_inventory/cli/group_addchild.rb
278
+ - lib/moose_inventory/cli/group_addhost.rb
279
+ - lib/moose_inventory/cli/group_addvar.rb
280
+ - lib/moose_inventory/cli/group_get.rb
281
+ - lib/moose_inventory/cli/group_list.rb
282
+ - lib/moose_inventory/cli/group_rm.rb
283
+ - lib/moose_inventory/cli/group_rmchild.rb
284
+ - lib/moose_inventory/cli/group_rmhost.rb
285
+ - lib/moose_inventory/cli/group_rmvar.rb
286
+ - lib/moose_inventory/cli/host.rb
287
+ - lib/moose_inventory/cli/host_add.rb
288
+ - lib/moose_inventory/cli/host_addgroup.rb
289
+ - lib/moose_inventory/cli/host_addvar.rb
290
+ - lib/moose_inventory/cli/host_get.rb
291
+ - lib/moose_inventory/cli/host_list.rb
292
+ - lib/moose_inventory/cli/host_rm.rb
293
+ - lib/moose_inventory/cli/host_rmgroup.rb
294
+ - lib/moose_inventory/cli/host_rmvar.rb
295
+ - lib/moose_inventory/config/config.rb
296
+ - lib/moose_inventory/db/db.rb
297
+ - lib/moose_inventory/db/exceptions.rb
298
+ - lib/moose_inventory/db/models.rb
299
+ - lib/moose_inventory/version.rb
304
300
  - moose-inventory.gemspec
301
+ - scripts/files.rb
305
302
  - scripts/guard_quality.sh
306
303
  - scripts/guard_test.sh
307
304
  - scripts/reports.sh
308
305
  - spec/config/config.yml
309
- - spec/lib/moose/inventory/cli/application_spec.rb
310
- - spec/lib/moose/inventory/cli/cli_spec.rb
311
- - spec/lib/moose/inventory/cli/formatter_spec.rb
312
- - spec/lib/moose/inventory/cli/group_add_spec.rb
313
- - spec/lib/moose/inventory/cli/group_addhost_spec.rb
314
- - spec/lib/moose/inventory/cli/group_addvar_spec.rb
315
- - spec/lib/moose/inventory/cli/group_get_spec.rb
316
- - spec/lib/moose/inventory/cli/group_list_spec.rb
317
- - spec/lib/moose/inventory/cli/group_rm_spec.rb
318
- - spec/lib/moose/inventory/cli/group_rmhost_spec.rb
319
- - spec/lib/moose/inventory/cli/group_rmvar_spec.rb
320
- - spec/lib/moose/inventory/cli/group_spec.rb
321
- - spec/lib/moose/inventory/cli/host_add_spec.rb
322
- - spec/lib/moose/inventory/cli/host_addgroup_spec.rb
323
- - spec/lib/moose/inventory/cli/host_addvar_spec.rb
324
- - spec/lib/moose/inventory/cli/host_get_spec.rb
325
- - spec/lib/moose/inventory/cli/host_list_spec.rb
326
- - spec/lib/moose/inventory/cli/host_rm_spec.rb
327
- - spec/lib/moose/inventory/cli/host_rmgroup_spec.rb
328
- - spec/lib/moose/inventory/cli/host_rmvar_spec.rb
329
- - spec/lib/moose/inventory/cli/host_spec.rb
330
- - spec/lib/moose/inventory/config/config_spec.rb
331
- - spec/lib/moose/inventory/db/db_spec.rb
332
- - spec/lib/moose/inventory/db/models_spec.rb
306
+ - spec/lib/moose_inventory/cli/application_spec.rb
307
+ - spec/lib/moose_inventory/cli/cli_spec.rb
308
+ - spec/lib/moose_inventory/cli/formatter_spec.rb
309
+ - spec/lib/moose_inventory/cli/group_add_spec.rb
310
+ - spec/lib/moose_inventory/cli/group_addhost_spec.rb
311
+ - spec/lib/moose_inventory/cli/group_addvar_spec.rb
312
+ - spec/lib/moose_inventory/cli/group_get_spec.rb
313
+ - spec/lib/moose_inventory/cli/group_list_spec.rb
314
+ - spec/lib/moose_inventory/cli/group_rm_spec.rb
315
+ - spec/lib/moose_inventory/cli/group_rmhost_spec.rb
316
+ - spec/lib/moose_inventory/cli/group_rmvar_spec.rb
317
+ - spec/lib/moose_inventory/cli/group_spec.rb
318
+ - spec/lib/moose_inventory/cli/host_add_spec.rb
319
+ - spec/lib/moose_inventory/cli/host_addgroup_spec.rb
320
+ - spec/lib/moose_inventory/cli/host_addvar_spec.rb
321
+ - spec/lib/moose_inventory/cli/host_get_spec.rb
322
+ - spec/lib/moose_inventory/cli/host_list_spec.rb
323
+ - spec/lib/moose_inventory/cli/host_rm_spec.rb
324
+ - spec/lib/moose_inventory/cli/host_rmgroup_spec.rb
325
+ - spec/lib/moose_inventory/cli/host_rmvar_spec.rb
326
+ - spec/lib/moose_inventory/cli/host_spec.rb
327
+ - spec/lib/moose_inventory/config/config_spec.rb
328
+ - spec/lib/moose_inventory/db/db_spec.rb
329
+ - spec/lib/moose_inventory/db/models_spec.rb
333
330
  - spec/shared/shared_config_setup.rb
334
331
  - spec/spec_helper.rb
335
332
  homepage: https://github.com/RusDavies/moose-inventory
@@ -358,29 +355,29 @@ specification_version: 4
358
355
  summary: Moose-tools inventory manager
359
356
  test_files:
360
357
  - spec/config/config.yml
361
- - spec/lib/moose/inventory/cli/application_spec.rb
362
- - spec/lib/moose/inventory/cli/cli_spec.rb
363
- - spec/lib/moose/inventory/cli/formatter_spec.rb
364
- - spec/lib/moose/inventory/cli/group_add_spec.rb
365
- - spec/lib/moose/inventory/cli/group_addhost_spec.rb
366
- - spec/lib/moose/inventory/cli/group_addvar_spec.rb
367
- - spec/lib/moose/inventory/cli/group_get_spec.rb
368
- - spec/lib/moose/inventory/cli/group_list_spec.rb
369
- - spec/lib/moose/inventory/cli/group_rm_spec.rb
370
- - spec/lib/moose/inventory/cli/group_rmhost_spec.rb
371
- - spec/lib/moose/inventory/cli/group_rmvar_spec.rb
372
- - spec/lib/moose/inventory/cli/group_spec.rb
373
- - spec/lib/moose/inventory/cli/host_add_spec.rb
374
- - spec/lib/moose/inventory/cli/host_addgroup_spec.rb
375
- - spec/lib/moose/inventory/cli/host_addvar_spec.rb
376
- - spec/lib/moose/inventory/cli/host_get_spec.rb
377
- - spec/lib/moose/inventory/cli/host_list_spec.rb
378
- - spec/lib/moose/inventory/cli/host_rm_spec.rb
379
- - spec/lib/moose/inventory/cli/host_rmgroup_spec.rb
380
- - spec/lib/moose/inventory/cli/host_rmvar_spec.rb
381
- - spec/lib/moose/inventory/cli/host_spec.rb
382
- - spec/lib/moose/inventory/config/config_spec.rb
383
- - spec/lib/moose/inventory/db/db_spec.rb
384
- - spec/lib/moose/inventory/db/models_spec.rb
358
+ - spec/lib/moose_inventory/cli/application_spec.rb
359
+ - spec/lib/moose_inventory/cli/cli_spec.rb
360
+ - spec/lib/moose_inventory/cli/formatter_spec.rb
361
+ - spec/lib/moose_inventory/cli/group_add_spec.rb
362
+ - spec/lib/moose_inventory/cli/group_addhost_spec.rb
363
+ - spec/lib/moose_inventory/cli/group_addvar_spec.rb
364
+ - spec/lib/moose_inventory/cli/group_get_spec.rb
365
+ - spec/lib/moose_inventory/cli/group_list_spec.rb
366
+ - spec/lib/moose_inventory/cli/group_rm_spec.rb
367
+ - spec/lib/moose_inventory/cli/group_rmhost_spec.rb
368
+ - spec/lib/moose_inventory/cli/group_rmvar_spec.rb
369
+ - spec/lib/moose_inventory/cli/group_spec.rb
370
+ - spec/lib/moose_inventory/cli/host_add_spec.rb
371
+ - spec/lib/moose_inventory/cli/host_addgroup_spec.rb
372
+ - spec/lib/moose_inventory/cli/host_addvar_spec.rb
373
+ - spec/lib/moose_inventory/cli/host_get_spec.rb
374
+ - spec/lib/moose_inventory/cli/host_list_spec.rb
375
+ - spec/lib/moose_inventory/cli/host_rm_spec.rb
376
+ - spec/lib/moose_inventory/cli/host_rmgroup_spec.rb
377
+ - spec/lib/moose_inventory/cli/host_rmvar_spec.rb
378
+ - spec/lib/moose_inventory/cli/host_spec.rb
379
+ - spec/lib/moose_inventory/config/config_spec.rb
380
+ - spec/lib/moose_inventory/db/db_spec.rb
381
+ - spec/lib/moose_inventory/db/models_spec.rb
385
382
  - spec/shared/shared_config_setup.rb
386
383
  - spec/spec_helper.rb
data/bin/.buildpath DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <buildpath>
3
- <buildpathentry kind="src" path=""/>
4
- <buildpathentry kind="con" path="org.eclipse.dltk.launching.INTERPRETER_CONTAINER"/>
5
- </buildpath>
data/bin/.project DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>moose-inventory</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.dltk.core.scriptbuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>org.eclipse.dltk.ruby.core.nature</nature>
16
- </natures>
17
- </projectDescription>
data/bin/moose_inventory DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- begin
4
- require 'moose_inventory_cli'
5
- rescue
6
- require 'rubygems'
7
- require 'moose-inventory-cli'
8
- end
9
-
10
- Moose::Inventory::Cli.start(ARGV) if __FILE__ == $PROGRAM_NAME
@@ -1,7 +0,0 @@
1
- module Moose
2
- ##
3
- # The Moose-Tools dynanic inventory management library
4
- module Inventory
5
- VERSION = '0.1.1'
6
- end
7
- end