jimbodragon_acceptance_test 0.1.2 → 0.1.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2757fc95ac29fc62dd8a725fccf1fdefc88afc259c35e31a1f4f23f9ef59a5dc
4
- data.tar.gz: f2d71bec5961816543ae06a20b9de94494667d2c405b1b772dae5d217a4ae7a3
3
+ metadata.gz: 80fdadd35ebee8e99e50d2c1369091f7af0122101539eb1a8fdbfb2ce0743624
4
+ data.tar.gz: 06caf57680cf80bc5744afa8920f1032fa2f4f894459abafc1b740d4ae781a08
5
5
  SHA512:
6
- metadata.gz: 4b9ce3d6e6daa27af071bd258b3c399d67825d6b8302c212adcfb91119b920038637e4e7b5b40fa5165494a00053294eb99f8cc19959139389132fe10b81a37d
7
- data.tar.gz: 3e2eda8fd20654ed38a8b6f0543731d51605572e28e88d78e16674e53147a26bd166a508d4184687bf3251b662cb55b2ff42176c1175ccf8f8562f6eb31cdf7c
6
+ metadata.gz: ae872b8737f44ace2bf8ac8100dc145a30b2507b8c775ad2f3d9003042989fc91697300827d4b292d4bbbbdc07ee3c3d13e448c330919208cb2a4d3c36eebe59
7
+ data.tar.gz: 585469dcd9caa11b3bda6b904449622a1bb22a9b62c3b7b6838530d8890b9315e0450a58c24706a2ac8d6b3af4f7d83900f71a1a37f24dca4a9c212ceec2ac71
checksums.yaml.gz.sig CHANGED
Binary file
@@ -45,8 +45,8 @@ module JimboDragon
45
45
  'jimbodragon_infra_chef',
46
46
  'virtualbox',
47
47
  ].flatten}",
48
- 'chef exec circleci config process .circleci/config.yml > process.yml',
49
- "chef exec circleci local execute -c process.yml --job #{ENV['GEM_PROJECT_NAME']}",
48
+ # 'chef exec circleci config process .circleci/config.yml > process.yml',
49
+ # "chef exec circleci local execute -c process.yml --job #{ENV['GEM_PROJECT_NAME']}",
50
50
  ].each { |command| system command }
51
51
  end
52
52
 
data/client.rb CHANGED
@@ -1 +1,3 @@
1
- require_relative 'common_knife'
1
+ require_relative 'lib/knife'
2
+
3
+ JimboDragon.loading_chef(self)
data/knife.rb CHANGED
@@ -1,3 +1,3 @@
1
- require_relative 'common_knife'
1
+ require_relative 'lib/knife'
2
2
 
3
3
  JimboDragon.loading_chef(self)
data/lib/knife.rb ADDED
@@ -0,0 +1,68 @@
1
+
2
+ module JimboDragon
3
+ def self.loading_chef(knife_or_chefclient)
4
+ JimboDragon.Knife.new(knife_or_chefclient)
5
+ end
6
+
7
+ class Knife
8
+ attr_accessor :knife_or_chefclient
9
+
10
+ def send_to_chef(method, parameter)
11
+ knife_or_chefclient.send(method, parameter)
12
+ end
13
+
14
+ def initialize(knife_or_chefclient)
15
+ @knife_or_chefclient = knife_or_chefclient
16
+ send_to_chef(:chef_license, 'accept')
17
+ send_to_chef(:log_level, :info)
18
+ send_to_chef(:node_name, ENV['KNIFE_USER'])
19
+
20
+ send_to_chef(:client_key, "#{chef_repo_path}/profiles.d/#{ENV['KNIFE_USER']}/chef/#{ENV['KNIFE_USER']}.pem")
21
+ send_to_chef(:chef_server_url, 'https://api.chef.io/organizations/jimbodragon')
22
+
23
+ send_to_chef(:chef_repo_path, chef_repo_path)
24
+ send_to_chef(:cookbook_path, [
25
+ "#{chef_repo_path}/cookbooks/",
26
+ "#{chef_repo_path}/libraries/",
27
+ "#{chef_repo_path}/resources/",
28
+ "#{chef_repo_path}/berks-cookbooks/",
29
+ ]
30
+ )
31
+ send_to_chef(:data_bags_path, "#{chef_repo_path}/data_bags")
32
+ send_to_chef(:environment_path, "#{chef_repo_path}/environments")
33
+ send_to_chef(:node_path, "#{chef_repo_path}/nodes")
34
+ send_to_chef(:policy_group_path, "#{chef_repo_path}/policy_group")
35
+ send_to_chef(:policy_path, "#{chef_repo_path}/policies")
36
+ send_to_chef(:role_path, "#{chef_repo_path}/roles")
37
+ send_to_chef(:log_location, "#{chef_repo_path}/logs/#{ENV['KNIFE_USER']}.log")
38
+ send_to_chef(:cache_path, "#{chef_repo_path}/.chef/local-mode-cache")
39
+ send_to_chef(:checksum_path, "#{chef_repo_path}/.chef/local-mode-cache/checksums")
40
+ send_to_chef(:acl_path, "#{chef_repo_path}/acls")
41
+ send_to_chef(:client_d_dir, "#{chef_repo_path}/.chef/client.d")
42
+ send_to_chef(:client_key_path, "#{chef_repo_path}/client_keys")
43
+ send_to_chef(:client_path, "#{chef_repo_path}/clients")
44
+ send_to_chef(:color, true)
45
+ send_to_chef(:config_d_dir, "#{chef_repo_path}/.chef/config.d")
46
+ send_to_chef(:config_dir, "#{chef_repo_path}/.chef")
47
+ send_to_chef(:container_path, "#{chef_repo_path}/containers")
48
+ send_to_chef(:cookbook_artifact_path, "#{chef_repo_path}/cookbook_artifacts")
49
+ send_to_chef(:enable_reporting, false)
50
+ send_to_chef(:file_backup_path, "#{chef_repo_path}/.chef/local-mode-cache/backup")
51
+ send_to_chef(:file_cache_path, "#{chef_repo_path}/.chef/local-mode-cache/cache")
52
+ send_to_chef(:group_path, "#{chef_repo_path}/groups")
53
+ send_to_chef(:lockfile, "#{chef_repo_path}/.chef/local-mode-cache/cache/chef-client-running.pid")
54
+ send_to_chef(:ohai_segment_plugin_path, "#{chef_repo_path}/.chef/ohai/cookbook_plugins")
55
+ send_to_chef(:solo_d_dir, "#{chef_repo_path}/.chef/solo.d")
56
+ send_to_chef(:user_path, "#{chef_repo_path}/users")
57
+ send_to_chef(:syntax_check_cache_path, "#{chef_repo_path}/.chef/syntaxcache")
58
+ send_to_chef(:trusted_certs_dir, "#{chef_repo_path}/.chef/trusted_certs")
59
+ send_to_chef(:validation_client_name, "#{ENV['HAB_ORIGIN']}-validator")
60
+ send_to_chef(:data_bag_encrypt_version, 3)
61
+ send_to_chef(:named_run_list, NAMED_RUN_LIST)
62
+ end
63
+
64
+ def chef_repo_path
65
+
66
+ end
67
+ end
68
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jimbodragon_acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
@@ -94,8 +94,8 @@ files:
94
94
  - README.md
95
95
  - bin/jimbodragon_acceptance_test
96
96
  - client.rb
97
- - common_knife.rb
98
97
  - knife.rb
98
+ - lib/knife.rb
99
99
  homepage: https://github.com/JimboDragonGit/jimbodragon_acceptance_test
100
100
  licenses:
101
101
  - MIT
metadata.gz.sig CHANGED
Binary file
data/common_knife.rb DELETED
@@ -1,53 +0,0 @@
1
-
2
- require_relative 'env' if ::File.exist?('env.rb')
3
-
4
- module JimboDragon
5
- def self.loading_chef(knife_or_chefclient)
6
- knife_or_chefclient.send(:chef_license, 'accept')
7
- knife_or_chefclient.send(:log_level, :info)
8
- knife_or_chefclient.send(:node_name, KNIFE_USER)
9
-
10
- knife_or_chefclient.send(:client_key, "chef_repo/profiles.d/#{KNIFE_USER}/chef/#{KNIFE_USER}.pem")
11
- knife_or_chefclient.send(:chef_server_url, 'https://api.chef.io/organizations/jimbodragon')
12
-
13
- knife_or_chefclient.send(:chef_repo_path, 'chef_repo')
14
- knife_or_chefclient.send(:cookbook_path, [
15
- 'chef_repo/cookbooks',
16
- 'chef_repo/libraries',
17
- 'chef_repo/resources',
18
- 'chef_repo/berks-cookbooks',
19
- ]
20
- )
21
- knife_or_chefclient.send(:data_bags_path, 'chef_repo/data_bags')
22
- knife_or_chefclient.send(:environment_path, 'chef_repo/environments')
23
- knife_or_chefclient.send(:node_path, 'chef_repo/nodes')
24
- knife_or_chefclient.send(:policy_group_path, 'chef_repo/policy_group')
25
- knife_or_chefclient.send(:policy_path, 'chef_repo/policies')
26
- knife_or_chefclient.send(:role_path, 'chef_repo/roles')
27
- knife_or_chefclient.send(:log_location, "chef_repo/logs/#{KNIFE_USER}.log")
28
- knife_or_chefclient.send(:cache_path, 'chef_repo/.chef/local-mode-cache')
29
- knife_or_chefclient.send(:checksum_path, 'chef_repo/.chef/local-mode-cache/checksums')
30
- knife_or_chefclient.send(:acl_path, 'chef_repo/acls')
31
- knife_or_chefclient.send(:client_d_dir, 'chef_repo/.chef/client.d')
32
- knife_or_chefclient.send(:client_key_path, 'chef_repo/client_keys')
33
- knife_or_chefclient.send(:client_path, 'chef_repo/clients')
34
- knife_or_chefclient.send(:color, true)
35
- knife_or_chefclient.send(:config_d_dir, 'chef_repo/.chef/config.d')
36
- knife_or_chefclient.send(:config_dir, 'chef_repo/.chef')
37
- knife_or_chefclient.send(:container_path, 'chef_repo/containers')
38
- knife_or_chefclient.send(:cookbook_artifact_path, 'chef_repo/cookbook_artifacts')
39
- knife_or_chefclient.send(:enable_reporting, false)
40
- knife_or_chefclient.send(:file_backup_path, 'chef_repo/.chef/local-mode-cache/backup')
41
- knife_or_chefclient.send(:file_cache_path, 'chef_repo/.chef/local-mode-cache/cache')
42
- knife_or_chefclient.send(:group_path, 'chef_repo/groups')
43
- knife_or_chefclient.send(:lockfile, 'chef_repo/.chef/local-mode-cache/cache/chef-client-running.pid')
44
- knife_or_chefclient.send(:ohai_segment_plugin_path, 'chef_repo/.chef/ohai/cookbook_plugins')
45
- knife_or_chefclient.send(:solo_d_dir, 'chef_repo/.chef/solo.d')
46
- knife_or_chefclient.send(:user_path, 'chef_repo/users')
47
- knife_or_chefclient.send(:syntax_check_cache_path, 'chef_repo/.chef/syntaxcache')
48
- knife_or_chefclient.send(:trusted_certs_dir, 'chef_repo/.chef/trusted_certs')
49
- knife_or_chefclient.send(:validation_client_name, 'exemple-chef-validator')
50
- knife_or_chefclient.send(:data_bag_encrypt_version, 3)
51
- knife_or_chefclient.send(:named_run_list, NAMED_RUN_LIST)
52
- end
53
- end