knife-chop 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +24 -0
  3. data/Gemfile.lock +154 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.rdoc +23 -0
  6. data/Rakefile +54 -0
  7. data/TODO.rdoc +46 -0
  8. data/VERSION +1 -0
  9. data/bin/chop +48 -0
  10. data/knife-chop.gemspec +118 -0
  11. data/lib/chef/knife/chop/chef_data_bag_item.rb +43 -0
  12. data/lib/chef/knife/chop/chef_environment.rb +47 -0
  13. data/lib/chef/knife/chop/chef_knife.rb +85 -0
  14. data/lib/chef/knife/chop/chef_part.rb +191 -0
  15. data/lib/chef/knife/chop/chef_role.rb +48 -0
  16. data/lib/chef/knife/chop/cookbook_upload.rb +143 -0
  17. data/lib/chef/knife/chop/data_bag_from_file.rb +87 -0
  18. data/lib/chef/knife/chop/environment_from_file.rb +79 -0
  19. data/lib/chef/knife/chop/errors.rb +5 -0
  20. data/lib/chef/knife/chop/logging.rb +245 -0
  21. data/lib/chef/knife/chop/role_from_file.rb +45 -0
  22. data/lib/chef/knife/chop/translate.rb +23 -0
  23. data/lib/chef/knife/chop/translate/eden.rb +23 -0
  24. data/lib/chef/knife/chop/translate/rbeautify.rb +24 -0
  25. data/lib/chef/knife/chop/ui.rb +110 -0
  26. data/lib/chef/knife/chop/version.rb +9 -0
  27. data/lib/chef/knife/chop_base.rb +821 -0
  28. data/lib/chef/knife/chop_translate.rb +161 -0
  29. data/lib/chef/knife/chop_upload.rb +199 -0
  30. data/lib/ruby-beautify/Gemfile +4 -0
  31. data/lib/ruby-beautify/LICENSE +22 -0
  32. data/lib/ruby-beautify/README.md +39 -0
  33. data/lib/ruby-beautify/RELEASE.md +13 -0
  34. data/lib/ruby-beautify/Rakefile +2 -0
  35. data/lib/ruby-beautify/bin/rbeautify +28 -0
  36. data/lib/ruby-beautify/lib/beautifier.rb +168 -0
  37. data/lib/ruby-beautify/lib/ruby-beautify.rb +26 -0
  38. data/lib/ruby-beautify/lib/ruby-beautify/block_end.rb +23 -0
  39. data/lib/ruby-beautify/lib/ruby-beautify/block_matcher.rb +153 -0
  40. data/lib/ruby-beautify/lib/ruby-beautify/block_start.rb +119 -0
  41. data/lib/ruby-beautify/lib/ruby-beautify/config/ruby.rb +131 -0
  42. data/lib/ruby-beautify/lib/ruby-beautify/language.rb +37 -0
  43. data/lib/ruby-beautify/lib/ruby-beautify/line.rb +53 -0
  44. data/lib/ruby-beautify/lib/ruby-beautify/version.rb +3 -0
  45. data/lib/ruby-beautify/ruby-beautify.gemspec +17 -0
  46. data/lib/ruby-beautify/spec/fixtures/ruby.yml +408 -0
  47. data/lib/ruby-beautify/spec/rbeautify/block_matcher_spec.rb +89 -0
  48. data/lib/ruby-beautify/spec/rbeautify/block_start_spec.rb +51 -0
  49. data/lib/ruby-beautify/spec/rbeautify/config/ruby_spec.rb +183 -0
  50. data/lib/ruby-beautify/spec/rbeautify/line_spec.rb +73 -0
  51. data/lib/ruby-beautify/spec/rbeautify_spec.rb +1 -0
  52. data/lib/ruby-beautify/spec/spec_helper.rb +124 -0
  53. data/spec/knife-chop_spec.rb +7 -0
  54. data/spec/spec_helper.rb +12 -0
  55. metadata +233 -0
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "KnifeChop" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'knife-chop'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: knife-chop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.6
5
+ platform: ruby
6
+ authors:
7
+ - Christo De Lange
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colorize
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: logging
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: inifile
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - <=
74
+ - !ruby/object:Gem::Version
75
+ version: 1.7.7
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: 1.4.4
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - <=
84
+ - !ruby/object:Gem::Version
85
+ version: 1.7.7
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: 1.4.4
89
+ - !ruby/object:Gem::Dependency
90
+ name: mixlib-config
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: 1.1.2
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: 1.1.2
103
+ - !ruby/object:Gem::Dependency
104
+ name: chef
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 11.6.2
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ~>
115
+ - !ruby/object:Gem::Version
116
+ version: 11.6.2
117
+ - !ruby/object:Gem::Dependency
118
+ name: unf
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: knife-ec2
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :runtime
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ! '>='
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ description: Knife plugin to assist with the upload and sync of Chef server assets
146
+ like roles, environments and cookbooks allowing for multiple parts to be uploaded
147
+ at once to multiple environments. Resources can be matched with regular expressions.
148
+ email: rubygems@dldinternet.com
149
+ executables:
150
+ - chop
151
+ extensions: []
152
+ extra_rdoc_files:
153
+ - LICENSE.txt
154
+ - README.rdoc
155
+ files:
156
+ - Gemfile
157
+ - Gemfile.lock
158
+ - LICENSE.txt
159
+ - README.rdoc
160
+ - Rakefile
161
+ - TODO.rdoc
162
+ - VERSION
163
+ - bin/chop
164
+ - knife-chop.gemspec
165
+ - lib/chef/knife/chop/chef_data_bag_item.rb
166
+ - lib/chef/knife/chop/chef_environment.rb
167
+ - lib/chef/knife/chop/chef_knife.rb
168
+ - lib/chef/knife/chop/chef_part.rb
169
+ - lib/chef/knife/chop/chef_role.rb
170
+ - lib/chef/knife/chop/cookbook_upload.rb
171
+ - lib/chef/knife/chop/data_bag_from_file.rb
172
+ - lib/chef/knife/chop/environment_from_file.rb
173
+ - lib/chef/knife/chop/errors.rb
174
+ - lib/chef/knife/chop/logging.rb
175
+ - lib/chef/knife/chop/role_from_file.rb
176
+ - lib/chef/knife/chop/translate.rb
177
+ - lib/chef/knife/chop/translate/eden.rb
178
+ - lib/chef/knife/chop/translate/rbeautify.rb
179
+ - lib/chef/knife/chop/ui.rb
180
+ - lib/chef/knife/chop/version.rb
181
+ - lib/chef/knife/chop_base.rb
182
+ - lib/chef/knife/chop_translate.rb
183
+ - lib/chef/knife/chop_upload.rb
184
+ - lib/ruby-beautify/Gemfile
185
+ - lib/ruby-beautify/LICENSE
186
+ - lib/ruby-beautify/README.md
187
+ - lib/ruby-beautify/RELEASE.md
188
+ - lib/ruby-beautify/Rakefile
189
+ - lib/ruby-beautify/bin/rbeautify
190
+ - lib/ruby-beautify/lib/beautifier.rb
191
+ - lib/ruby-beautify/lib/ruby-beautify.rb
192
+ - lib/ruby-beautify/lib/ruby-beautify/block_end.rb
193
+ - lib/ruby-beautify/lib/ruby-beautify/block_matcher.rb
194
+ - lib/ruby-beautify/lib/ruby-beautify/block_start.rb
195
+ - lib/ruby-beautify/lib/ruby-beautify/config/ruby.rb
196
+ - lib/ruby-beautify/lib/ruby-beautify/language.rb
197
+ - lib/ruby-beautify/lib/ruby-beautify/line.rb
198
+ - lib/ruby-beautify/lib/ruby-beautify/version.rb
199
+ - lib/ruby-beautify/ruby-beautify.gemspec
200
+ - lib/ruby-beautify/spec/fixtures/ruby.yml
201
+ - lib/ruby-beautify/spec/rbeautify/block_matcher_spec.rb
202
+ - lib/ruby-beautify/spec/rbeautify/block_start_spec.rb
203
+ - lib/ruby-beautify/spec/rbeautify/config/ruby_spec.rb
204
+ - lib/ruby-beautify/spec/rbeautify/line_spec.rb
205
+ - lib/ruby-beautify/spec/rbeautify_spec.rb
206
+ - lib/ruby-beautify/spec/spec_helper.rb
207
+ - spec/knife-chop_spec.rb
208
+ - spec/spec_helper.rb
209
+ homepage: http://github.com/dldinternet/knife-chop
210
+ licenses:
211
+ - MIT
212
+ metadata: {}
213
+ post_install_message:
214
+ rdoc_options: []
215
+ require_paths:
216
+ - lib
217
+ required_ruby_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ! '>='
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ requirements: []
228
+ rubyforge_project:
229
+ rubygems_version: 2.1.5
230
+ signing_key:
231
+ specification_version: 4
232
+ summary: Knife plugin to ease the upload and sync of Chef server assets
233
+ test_files: []