avs 0.0.2 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3d8707cf431524fd229b1214e8b9fa6e04e79355679917afa9999d5f9b4b54b
4
- data.tar.gz: b8ad24e89a29dc34ceedfb2eec8c16b6b49f38793dca9c5e33b3000e5f9eef03
3
+ metadata.gz: 06a221a9832977a50b1b4858fd26e07d16cadc09aaacda98bc2da4707f7c24ed
4
+ data.tar.gz: da896c73f524a8f2125148edcbaea2cd6505a3179c8e0d6951b568536a128f49
5
5
  SHA512:
6
- metadata.gz: 1bfaca46b315a65f95364f29d977fa7f62e3ff7016b236f6a432a9f73cf098ed64d633800e4c7a1acbbb66043bd39a42052c2b53aa8070450493a7454f82a830
7
- data.tar.gz: e965e76ae0b0da5416368d75b924f149c86449f52027825f37b5ed43e8923e9029f4c094a1531a6c5210c0a2bf3e3f7318872ade05bdbb2b369bf9c349ae4c2b
6
+ metadata.gz: 132d8f365dbdc3dc17441d14235f2a9e9b98b29518737f9723f5fa567f2728fc4685c451669bc2e0378d54c29d05ae5329c810b465ad9bb2da35773e5980f2a6
7
+ data.tar.gz: f880afb358be424a71b30094e8315537631d99ab78e3fde502e707a76e4da17856d73a15df9eded3603511d391da16f85f3f67b2b52c5946745e9bf1b974174c
data/Gemfile.lock CHANGED
@@ -1,13 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avs (0.0.2)
4
+ avs (0.0.8)
5
5
  gli (~> 2.21.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- bump (0.10.0)
11
10
  gli (2.21.1)
12
11
  minitest (5.22.3)
13
12
  psych (5.1.2)
@@ -22,7 +21,6 @@ PLATFORMS
22
21
 
23
22
  DEPENDENCIES
24
23
  avs!
25
- bump
26
24
  minitest
27
25
  rake
28
26
  rdoc
data/avs.gemspec CHANGED
@@ -1,22 +1,21 @@
1
1
  # Ensure we require the local version and not one we might have installed already
2
- require File.join([File.dirname(__FILE__),'lib','avs','version.rb'])
2
+ require File.join([File.dirname(__FILE__), 'lib', 'avs', 'version.rb'])
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = 'avs'
5
5
  s.version = Avs::VERSION
6
6
  s.author = 'Christian Kyony'
7
7
  s.email = 'ckyony@changamuka.com'
8
- s.homepage = 'http://your.website.com'
8
+ s.homepage = 'https://github.com/rhc/avs'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.summary = 'A description of your project'
11
- s.files = `git ls-files`.split(" ")
11
+ s.files = `git ls-files`.split(' ')
12
12
  s.require_paths << 'lib'
13
- s.extra_rdoc_files = ['README.adoc','avs.rdoc']
13
+ s.extra_rdoc_files = ['README.adoc', 'avs.rdoc']
14
14
  s.rdoc_options << '--title' << 'avs' << '--main' << 'README.rdoc' << '-ri'
15
15
  s.bindir = 'bin'
16
16
  s.executables << 'avs'
17
- s.add_development_dependency('bump')
17
+ s.add_development_dependency('minitest')
18
18
  s.add_development_dependency('rake')
19
19
  s.add_development_dependency('rdoc')
20
- s.add_development_dependency('minitest')
21
- s.add_runtime_dependency('gli','~> 2.21.1')
20
+ s.add_runtime_dependency('gli', '~> 2.21.1')
22
21
  end
data/bin/avs CHANGED
@@ -20,18 +20,17 @@ class App
20
20
  arg_name 'The name of the argument'
21
21
  flag [:f,:flagname]
22
22
 
23
-
24
- desc 'Describe vulnerability here'
23
+ desc 'Manage vulnerabilities'
25
24
  arg_name 'Describe arguments to vulnerability here'
26
- command :vulnerability do |c|
25
+ command :vulnerabilities do |c|
27
26
  c.action do |global_options,options,args|
28
27
  puts "vulnerability command ran"
29
28
  end
30
29
  end
31
30
 
32
- desc 'Describe solution here'
31
+ desc 'Manage solutions'
33
32
  arg_name 'Describe arguments to solution here'
34
- command :solution do |c|
33
+ command :solutions do |c|
35
34
  c.action do |global_options,options,args|
36
35
  puts "solution command ran"
37
36
  end
data/lib/asset/command.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  require_relative 'model'
2
+ require_relative 'fixture'
2
3
 
3
- # Reopen the App class or module to add the 'asset' command
4
4
  class App
5
5
  extend GLI::App
6
6
 
7
- desc 'Describe asset here'
7
+ desc 'Manage assets'
8
8
  arg_name 'Describe arguments to asset here'
9
- command :asset do |c|
9
+ command :assets do |c|
10
10
  c.desc 'Describe a switch to asset'
11
11
  c.switch :s
12
12
 
@@ -15,57 +15,7 @@ class App
15
15
  c.flag :f
16
16
  c.action do |_global_options, _options, _args|
17
17
  # Your command logic specific to 'asset' here
18
- assets = [
19
- CmdbAsset.new(
20
- id: 100,
21
- country_code: 'cd',
22
- business_unit: 'bu',
23
- sub_area: 'sa',
24
- application: 'ewallet',
25
- utr: 'UTR01966',
26
- fqdn: 'fqdn.co.za',
27
- host_name: 'fqdn',
28
- ip_address: '172.16.19.66',
29
- operating_system: 'ubuntu',
30
- server_environment: 'linux',
31
- server_category: 'linux',
32
- host_key: 'xxxx',
33
- country: 'DRC'
34
- ),
35
- CmdbAsset.new(
36
- id: 200,
37
- country_code: 'mw',
38
- business_unit: 'bu',
39
- sub_area: 'sa',
40
- application: 'atm',
41
- utr: 'UTR01966',
42
- fqdn: 'fqdn.co.za',
43
- host_name: 'fqdn',
44
- ip_address: '198.172.19.66',
45
- operating_system: 'ubuntu',
46
- server_environment: 'linux',
47
- server_category: 'linux',
48
- host_key: 'xxxx',
49
- country: 'Malawi'
50
- ),
51
- CmdbAsset.new(
52
- id: 300,
53
- country_code: 'bw',
54
- business_unit: 'bu',
55
- sub_area: 'sa',
56
- application: 'forex',
57
- utr: 'UTR01986',
58
- fqdn: 'fqdn.co.za',
59
- host_name: 'fqdn',
60
- ip_address: '10.12.19.66',
61
- operating_system: 'ubuntu',
62
- server_environment: 'linux',
63
- server_category: 'linux',
64
- host_key: 'xxxx',
65
- country: 'Botswana'
66
- )
67
- ]
68
- puts 'list assets'
18
+ assets = fetch_fixtures
69
19
  assets.each do |asset|
70
20
  puts asset
71
21
  end
@@ -0,0 +1,54 @@
1
+ require_relative 'model'
2
+
3
+ def fetch_fixtures
4
+ [
5
+ CmdbAsset.new(
6
+ id: 100,
7
+ country_code: 'cd',
8
+ business_unit: 'bu',
9
+ sub_area: 'sa',
10
+ application: 'ewallet',
11
+ utr: 'UTR01966',
12
+ fqdn: 'fqdn.co.za',
13
+ host_name: 'fqdn',
14
+ ip_address: '172.16.19.66',
15
+ operating_system: 'ubuntu',
16
+ server_environment: 'linux',
17
+ server_category: 'linux',
18
+ host_key: 'xxxx',
19
+ country: 'DRC'
20
+ ),
21
+ CmdbAsset.new(
22
+ id: 200,
23
+ country_code: 'mw',
24
+ business_unit: 'bu',
25
+ sub_area: 'sa',
26
+ application: 'atm',
27
+ utr: 'UTR01966',
28
+ fqdn: 'fqdn.co.za',
29
+ host_name: 'fqdn',
30
+ ip_address: '198.172.19.66',
31
+ operating_system: 'ubuntu',
32
+ server_environment: 'linux',
33
+ server_category: 'linux',
34
+ host_key: 'xxxx',
35
+ country: 'Malawi'
36
+ ),
37
+ CmdbAsset.new(
38
+ id: 300,
39
+ country_code: 'bw',
40
+ business_unit: 'bu',
41
+ sub_area: 'sa',
42
+ application: 'forex',
43
+ utr: 'UTR01986',
44
+ fqdn: 'fqdn.co.za',
45
+ host_name: 'fqdn',
46
+ ip_address: '10.12.19.66',
47
+ operating_system: 'ubuntu',
48
+ server_environment: 'linux',
49
+ server_category: 'linux',
50
+ host_key: 'xxxx',
51
+ country: 'Botswana'
52
+ )
53
+ ]
54
+ end
data/lib/avs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avs
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Kyony
@@ -11,7 +11,7 @@ cert_chain: []
11
11
  date: 2024-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bump
14
+ name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: gli
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -98,12 +84,13 @@ files:
98
84
  - avs.rdoc
99
85
  - bin/avs
100
86
  - lib/asset/command.rb
87
+ - lib/asset/fixture.rb
101
88
  - lib/asset/model.rb
102
89
  - lib/avs.rb
103
90
  - lib/avs/version.rb
104
91
  - test/default_test.rb
105
92
  - test/test_helper.rb
106
- homepage: http://your.website.com
93
+ homepage: https://github.com/rhc/avs
107
94
  licenses: []
108
95
  metadata: {}
109
96
  post_install_message: