berktacular 0.1.1 → 0.1.2
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 +8 -8
- data/lib/berktacular/berksfile.rb +1 -1
- data/lib/berktacular/cookbook.rb +2 -2
- data/lib/berktacular/version.rb +1 -1
- data/lib/berktacular.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGYzNTEyMDVhOTg4NzViYWQxOTM3MjNlZDI2NWQ0MWQzY2E2MDIxZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTIyZTIyODlkM2JiNmY1N2IyZWY5NGViOTEzY2ZhZGUwMDM3ZTBmZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTEyYjcwZjQ4ZjEwMTc1ZGMxYzcwYWYwYzZiNDFmZDI2N2M1YmIwN2FhMDk4
|
10
|
+
ZDdkOTVkY2E1ZjYzM2E1MWYyOTVhZWM5NTI2OGJjZGMyMWM1YzJhNTJlYjkx
|
11
|
+
MDMzMDk1NDYzNmZjOTQ0YTk0MGZjMTBlMTBmMzNmMTA0OTAxOGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjJhM2EzYzczMDczMWE1OTQxNjFhNGM5NTBkZGYwYTBiMTM0NDJlNWEyYWYx
|
14
|
+
YzZiMzY5OWUzMmVlYjU2NThhNGE5YjI0OWQ0ZDQyMjk0MDU4OTY1ODQ2NTNl
|
15
|
+
ZTZkM2JlNjYyYzkzMzI0ZDQxYzk3ODg0YzQ4M2YyNWZjNGM4MzA=
|
@@ -76,7 +76,7 @@ module Berktacular
|
|
76
76
|
workdir
|
77
77
|
end
|
78
78
|
|
79
|
-
# @params workdir [String] the directory in which to install. If
|
79
|
+
# @params workdir [String] the directory in which to install. If nil, Berktacular.best_temp_dir is used.
|
80
80
|
# @return [True,False] the status of the verify.
|
81
81
|
def verify(workdir = nil)
|
82
82
|
require 'ridley'
|
data/lib/berktacular/cookbook.rb
CHANGED
@@ -20,8 +20,8 @@ module Berktacular
|
|
20
20
|
# @param version_spec [String] the exact version number as in a chef environment file. eg. '= 1.2.3'
|
21
21
|
# @param config [Hash,nil] the cookbook_location hash to for this cookbook. Optional.
|
22
22
|
# @option opts [Octokit::Client] :git_client (nil) the github client to use.
|
23
|
-
# @option opts [True,False] :upgrade (False) whether or not to check for updates. auto_upgrade must also be
|
24
|
-
# @option opts [True,False] :verbose (False) be more
|
23
|
+
# @option opts [True,False] :upgrade (False) whether or not to check for updates. auto_upgrade must also be enabled for the updated entry to be used.
|
24
|
+
# @option opts [True,False] :verbose (False) be more verbose.
|
25
25
|
def initialize( name, version_spec, config = nil, opts = {} )
|
26
26
|
@name = name || raise( "Missing cookbook name" )
|
27
27
|
@version_spec = version_spec || raise( "Missing cookbook version" )
|
data/lib/berktacular/version.rb
CHANGED
data/lib/berktacular.rb
CHANGED
@@ -19,6 +19,7 @@ module Berktacular
|
|
19
19
|
unless system(cmd)
|
20
20
|
raise "Command failed with exit code #{$?.exitstatus}: #{cmd}"
|
21
21
|
end
|
22
|
+
true
|
22
23
|
end
|
23
24
|
|
24
25
|
# @return [String] the best tmpdir to use for this machine. Prefers /dev/shm if available.
|
@@ -36,7 +37,7 @@ module Berktacular
|
|
36
37
|
Dir.mktmpdir(pat, tmp)
|
37
38
|
end
|
38
39
|
|
39
|
-
# Matches the
|
40
|
+
# Matches the numeric version information from a tag.
|
40
41
|
VERSION_RE = Regexp.new(/\d+(?:\.\d+)*/)
|
41
42
|
|
42
43
|
autoload :Cookbook, 'berktacular/cookbook'
|