cheftacular 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: ed3d36aae29ad0a580a6580e631349b3dbc42970
4
- data.tar.gz: 08bba008916dfbecd97b7e301d7e13683fc0c63d
3
+ metadata.gz: 87ef04da7a57c27f4d32d916d3a1a150703ad141
4
+ data.tar.gz: 01a0e89d89622d64ef6850c9435fa043235cc73c
5
5
  SHA512:
6
- metadata.gz: 82098488158e423a4c3907b54899a28b79836b7f636f2cf828c771b0a95919184db65d2c1da4ab02aa503c98d83516448f61daaaa778e84c2cc16dbab6dada21
7
- data.tar.gz: 5d36b5d48990dc9310c7e5b563bdb735d715f3f1318c44bf1488034c22beb3492835eeae2a4b87ec22701f3702c04c6539d6c7a041290f7b4e60335a08fd8ca0
6
+ metadata.gz: 474988b6d52df16f2d31f9f3597035b05bb94691ee5e27b43b44b01bad916efee713807574c98b53bc4a7fedb997c08b6db7b59302a35fbe993b0d50e69de8ed
7
+ data.tar.gz: 825348d57504b5abc2a2665fcf26fdfb2197739bab7d3e2d729d2980ce91e5267dca0cfd1cf28a0da1af0d511308ab04261dcf9fa2b11efcc2fb39d548623898
@@ -1,10 +1,10 @@
1
1
  # Table of Contents for Cheftacular Commands
2
2
 
3
- 1. [Cheftacular Arguments and Flags](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#arguments-and-flags-for-cheftacular))
3
+ 1. [Cheftacular Arguments and Flags](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#arguments-and-flags-for-cheftacular)
4
4
 
5
5
  2. [Application Commands](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#commands-that-can-be-run-in-the-application-context)
6
6
 
7
- 3. [DevOps Commands](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#commands-that-can-only-be-run-in-the-devops-context))
7
+ 3. [DevOps Commands](https://github.com/SocialCentivPublic/cheftacular/blob/master/lib/cheftacular/README.md#commands-that-can-only-be-run-in-the-devops-context)
8
8
 
9
9
 
10
10
  ## Arguments and flags for cheftacular
@@ -49,7 +49,7 @@ class Cheftacular
49
49
  end
50
50
 
51
51
  def save_authentication_bag bag_env="default"
52
- save_bag 'authentication', bag_env, @config['default']['authentication_bag'], @config['default']['authentication_bag_hash']
52
+ save_bag 'authentication', bag_env, @config['default']['authentication_bag'], @config['default']['authentication_bag_hash'], true
53
53
  end
54
54
 
55
55
  def save_chef_passwords_bag bag_env="options"
@@ -316,7 +316,7 @@ class Cheftacular
316
316
 
317
317
  puts("Loading additional data bag data from chef server for environment \"#{ env }\" for bags: #{ bags_to_load.join(', ') }") if !in_initializer && !@options['quiet']
318
318
 
319
- @config['ChefDataBag'].init_bag('default', 'authentication', false) if bags_to_load.empty? || bags_to_load.include?('authentication')
319
+ @config['ChefDataBag'].init_bag('default', 'authentication') if bags_to_load.empty? || bags_to_load.include?('authentication')
320
320
 
321
321
  @config['helper'].completion_rate?(38, 'initializer') if in_initializer
322
322
 
@@ -24,7 +24,7 @@ class Cheftacular
24
24
 
25
25
  specific_repository = ARGV[2] if ARGV[2] && specific_repository.empty?
26
26
 
27
- unless @config['helper'].get_array_of_repo_names_for_repositories.include?(specific_repository)
27
+ if !specific_repository.empty? && @config['getter'].get_repo_names_for_repositories.include?(specific_repository)
28
28
  puts "The repository passed (#{ specific_repository }) is not listed in the cheftacular.yml repositories hash! Please update the hash or check your spelling!"
29
29
 
30
30
  return false
@@ -33,9 +33,9 @@ class Cheftacular
33
33
  public_ssh_key = ARGV[1]
34
34
 
35
35
  if specific_repository.blank?
36
- @config['default']['authentication_bag_hash']["authorized_keys"] << pub_ssh_key
36
+ @config['default']['authentication_bag_hash']["authorized_keys"] << public_ssh_key
37
37
  else
38
- @config['default']['authentication_bag_hash']["specific_authorized_keys"] << pub_ssh_key
38
+ @config['default']['authentication_bag_hash']["specific_authorized_keys"] << public_ssh_key
39
39
  end
40
40
 
41
41
  @config['ChefDataBag'].save_authentication_bag
@@ -44,8 +44,8 @@ class Cheftacular
44
44
 
45
45
  " 4. `destroy:SERVER_NAME` destroys the server on the cloud. This must be an exact match of the server's actual name or the script will error.",
46
46
 
47
- "  5. `poll:SERVER_NAME` polls the cloud's server for the status of the SERVER_NAME. " +
48
- "This command will stop polling if / when the status of the server is ACTIVE and its build progress is 100%.",
47
+ "  5. `poll:SERVER_NAME` polls the cloud's server for the status of the SERVER_NAME. This command " +
48
+ "will stop polling if / when the status of the server is ACTIVE and its build progress is 100%.",
49
49
 
50
50
  " 6. `attach_volume:SERVER_NAME:VOLUME_NAME[:VOLUME_SIZE[:DEVICE_LOCATION]]` " +
51
51
  "If VOLUME_NAME exists it will attach it if it is unattached otherwise it will create it",
@@ -1,5 +1,5 @@
1
1
  class Cheftacular
2
2
  #major_version.minor_version.bugfixes
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  RUBY_VERSION = "2.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheftacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Alridge