knife-playground 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/chef/knife/pg.rb +8 -0
- metadata +3 -2
data/README.md
CHANGED
@@ -8,6 +8,12 @@ Playground for various Opscode Chef Knife plugins
|
|
8
8
|
|
9
9
|
# Commands Available
|
10
10
|
|
11
|
+
**knife pg config settings**
|
12
|
+
|
13
|
+
Print Chef::Config settings
|
14
|
+
|
15
|
+
knife pg config settings
|
16
|
+
|
11
17
|
**knife pg clientnode delete CLIENT**
|
12
18
|
|
13
19
|
Delete client + node from Opscode Chef Server
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2
|
1
|
+
0.2.1
|
data/lib/chef/knife/pg.rb
CHANGED
@@ -50,6 +50,13 @@ module KnifePlayground
|
|
50
50
|
|
51
51
|
end
|
52
52
|
|
53
|
+
#
|
54
|
+
# Most of this code comes from Opscode Knife cookbook_upload.rb plugin:
|
55
|
+
#
|
56
|
+
# https://github.com/opscode/chef/blob/master/chef/lib/chef/knife/cookbook_upload.rb
|
57
|
+
#
|
58
|
+
# Minor modifications to add Git support added
|
59
|
+
#
|
53
60
|
class PgGitCookbookUpload < Chef::Knife
|
54
61
|
|
55
62
|
CHECKSUM = "checksum"
|
@@ -59,6 +66,7 @@ module KnifePlayground
|
|
59
66
|
require 'chef/exceptions'
|
60
67
|
require 'chef/cookbook_loader'
|
61
68
|
require 'chef/cookbook_uploader'
|
69
|
+
require 'git'
|
62
70
|
end
|
63
71
|
|
64
72
|
banner "knife pg git cookbook upload [COOKBOOKS...] (options)"
|
metadata
CHANGED