garcun 0.0.9 → 0.1.0

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
  SHA1:
3
- metadata.gz: e52dcfec4d7603a91b49130dae8bb0feff98a5c0
4
- data.tar.gz: edf505348e58014492bae2d9ca13f6daf3be10b1
3
+ metadata.gz: 5455662f944538cd8256f62810d0511329cb350d
4
+ data.tar.gz: 5422ee4c6da1f792561345c8f8f603223726e674
5
5
  SHA512:
6
- metadata.gz: 64afc0d6acc4babd462e53cde38105b20806da93727c2979df21a101d796c30958c2fefd1c8d9b1409e1bb9e61dff4f2d5d60aba3fcf6ed292594a3d854f5754
7
- data.tar.gz: 572ba85781a08f15c0888b48ca17c431adeb648cf82d56cfb08333c8e6052378856646062183a59bb5d55d879d202d839583f3a16d95718a4f3c5229465488ba
6
+ metadata.gz: 5b99d44b3d94e5e6036e042d9773d4e11a5fc253445ad5e648a5e4510ab6d302078ef1eadacb151f70ed2699eb56005206f26d41ca2786beadd408cd9e54e9dc
7
+ data.tar.gz: 32964750cf0f9dc0f247abbbb4d86429614b9f6cb2897882e962054feaf3008b6d9e8eead5555deee72ef8f548d44cfc67b7ca5365cd84cc16f4f85d32422ed1
@@ -38,6 +38,12 @@ class Chef
38
38
  attribute :local,
39
39
  kind_of: [String],
40
40
  default: 'en_US.UTF-8'
41
+ attribute :ps1_root_msg,
42
+ kind_of: [TrueClass, FalseClass],
43
+ default: lazy { node[:garcon][:civilize][:ps1_root_msg] }
44
+ attribute :ps1_usr_msg,
45
+ kind_of: [TrueClass, FalseClass],
46
+ default: lazy { node[:garcon][:civilize][:ps1_usr_msg] }
41
47
  attribute :iptables,
42
48
  kind_of: [TrueClass, FalseClass],
43
49
  default: lazy { node[:garcon][:civilize][:iptables] }
@@ -122,7 +128,7 @@ class Chef
122
128
  t.run_action :create unless docker?
123
129
  end
124
130
  end
125
-
131
+ # Garçon
126
132
  def civilize_platform
127
133
  case node[:platform]
128
134
  when 'debian', 'ubuntu'
@@ -156,7 +162,7 @@ class Chef
156
162
  t.owner 'root'
157
163
  t.group 'root'
158
164
  t.mode 00644
159
- t.variables version: ver
165
+ t.variables ps1_root_msg: r.ps1_root_msg, ps1_usr_msg: r.ps1_usr_msg
160
166
  t.run_action :create
161
167
  end
162
168
 
@@ -39,8 +39,7 @@ module Garcon
39
39
  #
40
40
  # You also can provide a default password value in developer mode, like:
41
41
  #
42
- # node.set[:garcon][:secret][:passwd] = 'mysql_passwd'
43
- # mysql_passwd = secret('passwords', 'eazypass')
42
+ # node.set[:garcon][:secret][:passwd] = secret('passwords', 'eazypass')
44
43
  #
45
44
  # The mysql_passwd will == 'eazypass'
46
45
  #
@@ -57,11 +57,11 @@ module Garcon
57
57
 
58
58
  # The maximum sum total number of elements (cache entries) allowed on the
59
59
  # disk tier for the cache. If this target is exceeded, eviction occurs to
60
- # bring the count within the allowed target. The default value is 1,000. A
60
+ # bring the count within the allowed target. The default value is 100. A
61
61
  # setting of 0 means that no eviction of the cache's entries takes place
62
62
  # (infinite size is allowed), and consequently can cause the node to run
63
63
  # out of disk space.
64
- DEFAULT_MAX_ENTRIES = 1_000
64
+ DEFAULT_MAX_ENTRIES = 100
65
65
 
66
66
  # @!attribute [r] :stats
67
67
  # @return [CacheStats] The Cache statistics.
@@ -26,8 +26,8 @@ module Garcon
26
26
  # Contains information about this gem's version
27
27
  module Version
28
28
  MAJOR = 0
29
- MINOR = 0
30
- PATCH = 9
29
+ MINOR = 1
30
+ PATCH = 0
31
31
 
32
32
  # Returns a version string by joining MAJOR, MINOR, and PATCH with '.'
33
33
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garcun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Harding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-29 00:00:00.000000000 Z
11
+ date: 2015-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef