ogre 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/README.md +16 -2
  4. data/lib/ogre.rb +10 -0
  5. data/lib/ogre/config.rb +2 -0
  6. data/lib/ogre/messages.rb +12 -0
  7. data/lib/ogre/org-create.rb +30 -6
  8. data/lib/ogre/org-list.rb +13 -0
  9. data/lib/ogre/org-show.rb +45 -0
  10. data/lib/ogre/runner.rb +0 -2
  11. data/lib/ogre/user-list.rb +13 -0
  12. data/lib/ogre/version.rb +2 -2
  13. data/ogre.gemspec +5 -4
  14. data/spec/fixtures/vcr_cassettes/org-list.yml +73 -0
  15. data/spec/fixtures/vcr_cassettes/org-show.yml +205 -0
  16. data/spec/fixtures/vcr_cassettes/user-list.yml +75 -0
  17. data/spec/ogre/org-create_spec.rb +3 -2
  18. data/spec/ogre/org-list_spec.rb +26 -0
  19. data/spec/ogre/org-show_spec.rb +27 -0
  20. data/spec/ogre/user-list_spec.rb +26 -0
  21. data/spec/spec_helper.rb +4 -4
  22. metadata +48 -57
  23. data/lib/ogre/skeletons/code_generator/files/default/chefignore +0 -95
  24. data/lib/ogre/skeletons/code_generator/files/default/cookbook_readmes/README-policy.md +0 -9
  25. data/lib/ogre/skeletons/code_generator/files/default/cookbook_readmes/README.md +0 -54
  26. data/lib/ogre/skeletons/code_generator/files/default/gitignore +0 -16
  27. data/lib/ogre/skeletons/code_generator/files/default/repo/README.md +0 -66
  28. data/lib/ogre/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb +0 -7
  29. data/lib/ogre/skeletons/code_generator/files/default/repo/cookbooks/example/metadata.rb +0 -3
  30. data/lib/ogre/skeletons/code_generator/files/default/repo/cookbooks/example/recipes/default.rb +0 -8
  31. data/lib/ogre/skeletons/code_generator/files/default/repo/data_bags/README.md +0 -58
  32. data/lib/ogre/skeletons/code_generator/files/default/repo/data_bags/example/example_item.json +0 -4
  33. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/README.md +0 -9
  34. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/_default.json +0 -9
  35. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/dev.json +0 -21
  36. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/example.json +0 -13
  37. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/int.json +0 -21
  38. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/prod.json +0 -21
  39. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/qa.json +0 -21
  40. data/lib/ogre/skeletons/code_generator/files/default/repo/environments/stage.json +0 -21
  41. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/README.md +0 -9
  42. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/active-base.json +0 -12
  43. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/example.json +0 -13
  44. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_caeast.json +0 -13
  45. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_canada.json +0 -13
  46. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_cawest.json +0 -13
  47. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_useast.json +0 -13
  48. data/lib/ogre/skeletons/code_generator/files/default/repo/roles/loc_uswest.json +0 -13
  49. data/lib/ogre/skeletons/code_generator/metadata.rb +0 -8
  50. data/lib/ogre/skeletons/code_generator/recipes/repo.rb +0 -52
  51. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.all_rights.erb +0 -3
  52. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.apache2.erb +0 -201
  53. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.gplv2.erb +0 -339
  54. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.gplv3.erb +0 -674
  55. data/lib/ogre/skeletons/code_generator/templates/default/LICENSE.mit.erb +0 -21
  56. data/lib/ogre/skeletons/code_generator/templates/default/README.md.erb +0 -4
  57. data/lib/ogre/skeletons/code_generator/templates/default/cookbook_file.erb +0 -0
  58. data/lib/ogre/skeletons/code_generator/templates/default/knife.rb.erb +0 -44
  59. data/lib/ogre/skeletons/code_generator/templates/default/metadata.rb.erb +0 -8
  60. data/lib/ogre/skeletons/code_generator/templates/default/repo/gitignore.erb +0 -12
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) <%= year %> <%= copyright_holder %>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,4 +0,0 @@
1
- # <%= cookbook_name %>
2
-
3
- TODO: Enter the cookbook description here.
4
-
@@ -1,44 +0,0 @@
1
- #=====================================================================
2
- # <%= org %>-chef/.chef/knife.rb
3
- #
4
- # <%= org %> Chef Knife Configuration
5
- #
6
- #---------------------------------------------------------------------
7
- # Useful variables
8
- #
9
- current_dir = File.dirname(__FILE__)
10
- user_email = `git config --get user.email`.delete!("\n")
11
- home_dir = ENV['HOME'] || ENV['HOMEDRIVE']
12
- org = "<%= org %>"
13
- chef_server = "<%= chef_server_url %>"
14
-
15
- knife_override = "#{home_dir}/.chef/knife_override.rb"
16
-
17
- #---------------------------------------------------------------------
18
- # Configuration directives
19
- #
20
-
21
- # Where is the chef server?
22
- chef_server_url "#{chef_server}/organizations/#{org}"
23
-
24
- # Logging defaults
25
- log_level :info
26
- log_location STDOUT
27
-
28
- # USERNAME is UPPERCASE in Windows, but lowercase in the Chef server,
29
- # so `downcase` it.
30
- node_name ( ENV['USER'] || ENV['USERNAME'] ).downcase
31
- client_key "#{home_dir}/.chef/#{node_name}.pem"
32
- cache_type 'BasicFile'
33
- cache_options( :path => "#{home_dir}/.chef/checksums" )
34
-
35
- # Validation, for use when bootstrapping nodes
36
- validation_client_name "#{org}-validator"
37
- validation_key "#{current_dir}/#{validation_client_name}.pem"
38
-
39
- # We keep our cookbooks in separate repos under a ~/chef/cookbooks dir
40
- cookbook_path [ "#{current_dir}/../../../cookbooks",
41
- "#{current_dir}/../../../community" ]
42
- cookbook_copyright "<%=copyright_holder%>"
43
- cookbook_license "<%=license%>"
44
- cookbook_email "<%=email%>"
@@ -1,8 +0,0 @@
1
- name '<%= cookbook_name %>'
2
- maintainer '<%= copyright_holder %>'
3
- maintainer_email '<%= email %>'
4
- license '<%= license %>'
5
- description 'Installs/Configures <%= cookbook_name %>'
6
- long_description 'Installs/Configures <%= cookbook_name %>'
7
- version '0.1.0'
8
-
@@ -1,12 +0,0 @@
1
- .rake_test_cache
2
-
3
- ###
4
- # Ignore Chef key files and secrets
5
- ###
6
- .chef/*.pem
7
- !<%=org%>-validator.pem
8
- .chef/encrypted_data_bag_secret
9
- <%- if policy_only -%>
10
- cookbooks/**
11
- !cookbooks/README.md
12
- <%- end -%>