knife-essentials 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require 'chef_fs/file_system'
4
4
  class Chef
5
5
  class Knife
6
6
  class Delete < ChefFS::Knife
7
- banner "delete [PATTERN1 ... PATTERNn]"
7
+ banner "knife delete [PATTERN1 ... PATTERNn]"
8
8
 
9
9
  common_options
10
10
 
@@ -4,7 +4,7 @@ require 'chef_fs/command_line'
4
4
  class Chef
5
5
  class Knife
6
6
  class Diff < ChefFS::Knife
7
- banner "diff PATTERNS"
7
+ banner "knife diff PATTERNS"
8
8
 
9
9
  common_options
10
10
 
@@ -4,7 +4,7 @@ require 'chef_fs/command_line'
4
4
  class Chef
5
5
  class Knife
6
6
  class Download < ChefFS::Knife
7
- banner "download PATTERNS"
7
+ banner "knife download PATTERNS"
8
8
 
9
9
  common_options
10
10
 
@@ -4,7 +4,7 @@ require 'chef_fs/file_system'
4
4
  class Chef
5
5
  class Knife
6
6
  class List < ChefFS::Knife
7
- banner "list [-dR] [PATTERN1 ... PATTERNn]"
7
+ banner "knife list [-dR] [PATTERN1 ... PATTERNn]"
8
8
 
9
9
  common_options
10
10
 
@@ -3,7 +3,7 @@ require 'json'
3
3
  class Chef
4
4
  class Knife
5
5
  class Raw < Chef::Knife
6
- banner "raw REQUEST_PATH"
6
+ banner "knife raw REQUEST_PATH"
7
7
 
8
8
  option :method,
9
9
  :long => '--method METHOD',
@@ -4,7 +4,7 @@ require 'chef_fs/file_system'
4
4
  class Chef
5
5
  class Knife
6
6
  class Show < ChefFS::Knife
7
- banner "show [PATTERN1 ... PATTERNn]"
7
+ banner "knife show [PATTERN1 ... PATTERNn]"
8
8
 
9
9
  common_options
10
10
 
@@ -4,7 +4,7 @@ require 'chef_fs/command_line'
4
4
  class Chef
5
5
  class Knife
6
6
  class Upload < ChefFS::Knife
7
- banner "upload PATTERNS"
7
+ banner "knife upload PATTERNS"
8
8
 
9
9
  common_options
10
10
 
@@ -69,7 +69,11 @@ module ChefFS
69
69
  rescue ChefFS::FileSystem::NotFoundError
70
70
  return [ nil, nil, :none ]
71
71
  end
72
- value = chef_object.to_hash
72
+ begin
73
+ value = chef_object.to_hash
74
+ rescue ChefFS::FileSystem::NotFoundError
75
+ return [ nil, :none, other_value ]
76
+ end
73
77
  are_same = (value == Chef::JSONCompat.from_json(other_value, :create_additions => false))
74
78
  [ are_same, Chef::JSONCompat.to_json_pretty(value), other_value ]
75
79
  end
@@ -1,4 +1,4 @@
1
1
  module ChefFS
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-essentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.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-05-26 00:00:00.000000000Z
12
+ date: 2012-06-28 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Universal knife verbs that work with your Chef repository
15
15
  email: jkeiser@opscode.com