knife-playground 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +2 -2
  2. data/Rakefile +1 -0
  3. data/VERSION +1 -1
  4. data/lib/chef/knife/pg.rb +19 -0
  5. metadata +17 -3
data/README.md CHANGED
@@ -8,13 +8,13 @@ Playground for various Opscode Chef Knife plugins
8
8
 
9
9
  # Commands Available
10
10
 
11
- *knife pg clientnode delete CLIENT*
11
+ **knife pg clientnode delete CLIENT**
12
12
 
13
13
  Delete client + node from Opscode Chef Server
14
14
 
15
15
  knife pg clientnode delete bluepill
16
16
 
17
- *knife pg gitcook upload Git-URL1 GitURL2 ...*
17
+ **knife pg gitcook upload Git-URL1 GitURL2 ...**
18
18
 
19
19
  Upload a cookbook to a Chef Server downloading it first from a Git repository
20
20
 
data/Rakefile CHANGED
@@ -16,6 +16,7 @@ Jeweler::Tasks.new do |gem|
16
16
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
17
17
  gem.add_runtime_dependency 'chef', '>= 0.10'
18
18
  gem.add_runtime_dependency 'git'
19
+ gem.add_runtime_dependency 'colorize'
19
20
  # gem.add_development_dependency 'rspec', '> 1.2.3'
20
21
  end
21
22
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1
1
+ 0.2
data/lib/chef/knife/pg.rb CHANGED
@@ -1,6 +1,25 @@
1
1
  require 'chef'
2
2
 
3
3
  module KnifePlayground
4
+
5
+ class PgConfigSettings < Chef::Knife
6
+
7
+ banner "knife pg config settings"
8
+
9
+ deps do
10
+ require 'colorize'
11
+ end
12
+
13
+ def run
14
+ Chef::Config.configure do |h|
15
+ h.each do |k,v|
16
+ puts "#{k.to_s.ljust(30).cyan} #{v}"
17
+ end
18
+ end
19
+ end
20
+
21
+ end
22
+
4
23
  class PgClientnodeDelete < Chef::Knife
5
24
  banner "knife pg clientnode delete CLIENT"
6
25
 
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-playground
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- version: "0.1"
8
+ - 2
9
+ version: "0.2"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sergio Rubio
@@ -45,6 +45,20 @@ dependencies:
45
45
  version: "0"
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: colorize
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :runtime
61
+ version_requirements: *id003
48
62
  description: Misc tools for Opscode Chef Knife
49
63
  email: rubiojr@frameos.org
50
64
  executables: []