knife-block 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/chef/knife/block.rb +1 -1
- data/lib/knife-block/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -6,6 +6,10 @@ The knife block plugin has been created to enable the use of multiple knife.rb f
|
|
6
6
|
|
7
7
|
The premise is that you have a "block" in which you store all your "knives" and you can choose the one best suited to the task.
|
8
8
|
|
9
|
+
## Requirements
|
10
|
+
|
11
|
+
At present, knife-block requires ruby 1.9.2 or above. This is owing to the use of "Dir.home()" to find a user's home directory.
|
12
|
+
|
9
13
|
## Installation
|
10
14
|
|
11
15
|
gem install knife-block
|
data/lib/chef/knife/block.rb
CHANGED
@@ -23,7 +23,7 @@ module GreenAndSecure
|
|
23
23
|
def run
|
24
24
|
chef_path = Dir.home + "/.chef"
|
25
25
|
## get the list of available environments by searching ~/.chef for knife.rb files
|
26
|
-
file_list = Dir.glob(chef_path+"/knife-*.rb")
|
26
|
+
file_list = Dir.glob(chef_path+"/knife-*.rb").sort
|
27
27
|
current_server = ""
|
28
28
|
if File.exists?(chef_path+"/knife.rb") then
|
29
29
|
if !File.symlink?(chef_path+"/knife.rb") then
|
data/lib/knife-block/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-block
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-06 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Create and manage knife.rb files for OpsCodes' Chef
|
15
15
|
email:
|