from-scratch 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/Berksfile +1 -7
  3. data/Berksfile.lock +6 -0
  4. data/README.md +8 -3
  5. data/bin/scratchify +1 -1
  6. data/cookbooks/ruby_build/CHANGELOG.md +72 -0
  7. data/cookbooks/ruby_build/README.md +338 -0
  8. data/cookbooks/ruby_build/attributes/default.rb +67 -0
  9. data/cookbooks/ruby_build/libraries/ruby_build_recipe_helpers.rb +40 -0
  10. data/cookbooks/ruby_build/metadata.json +39 -0
  11. data/cookbooks/ruby_build/providers/ruby.rb +88 -0
  12. data/cookbooks/ruby_build/recipes/default.rb +69 -0
  13. data/cookbooks/ruby_build/resources/ruby.rb +33 -0
  14. data/cookbooks/ruby_rbenv/CHANGELOG.md +221 -0
  15. data/cookbooks/ruby_rbenv/README.md +1059 -0
  16. data/cookbooks/ruby_rbenv/attributes/default.rb +73 -0
  17. data/cookbooks/ruby_rbenv/libraries/chef_provider_package_rbenvrubygems.rb +94 -0
  18. data/cookbooks/ruby_rbenv/libraries/chef_rbenv_mixin.rb +49 -0
  19. data/cookbooks/ruby_rbenv/libraries/chef_rbenv_recipe_helpers.rb +118 -0
  20. data/cookbooks/ruby_rbenv/libraries/chef_rbenv_script_helpers.rb +79 -0
  21. data/cookbooks/ruby_rbenv/libraries/matchers.rb +25 -0
  22. data/cookbooks/ruby_rbenv/metadata.json +1 -0
  23. data/cookbooks/ruby_rbenv/providers/global.rb +53 -0
  24. data/cookbooks/ruby_rbenv/providers/plugin.rb +55 -0
  25. data/cookbooks/ruby_rbenv/providers/rehash.rb +45 -0
  26. data/cookbooks/ruby_rbenv/providers/ruby.rb +123 -0
  27. data/cookbooks/ruby_rbenv/providers/script.rb +81 -0
  28. data/cookbooks/ruby_rbenv/recipes/default.rb +23 -0
  29. data/cookbooks/ruby_rbenv/recipes/system.rb +52 -0
  30. data/cookbooks/ruby_rbenv/recipes/system_install.rb +45 -0
  31. data/cookbooks/ruby_rbenv/recipes/user.rb +76 -0
  32. data/cookbooks/ruby_rbenv/recipes/user_install.rb +48 -0
  33. data/cookbooks/ruby_rbenv/resources/gem.rb +44 -0
  34. data/cookbooks/ruby_rbenv/resources/global.rb +33 -0
  35. data/cookbooks/ruby_rbenv/resources/plugin.rb +15 -0
  36. data/cookbooks/ruby_rbenv/resources/rehash.rb +29 -0
  37. data/cookbooks/ruby_rbenv/resources/ruby.rb +43 -0
  38. data/cookbooks/ruby_rbenv/resources/script.rb +39 -0
  39. data/cookbooks/ruby_rbenv/templates/default/rbenv.sh.erb +15 -0
  40. data/cookbooks/scratchify/Berksfile +1 -7
  41. data/cookbooks/scratchify/Berksfile.lock +6 -0
  42. data/cookbooks/scratchify/README.md +8 -3
  43. data/cookbooks/scratchify/bin/scratchify +1 -1
  44. data/cookbooks/scratchify/from-scratch.gemspec +1 -0
  45. data/cookbooks/scratchify/lib/from-scratch.rb +51 -9
  46. data/cookbooks/scratchify/lib/from-scratch/version.rb +2 -2
  47. data/cookbooks/scratchify/metadata.json +2 -1
  48. data/cookbooks/scratchify/spec/from/scratch_spec.rb +62 -5
  49. data/cookbooks/scratchify/spec/spec_helper.rb +8 -1
  50. data/cookbooks/scratchify/templates/node.json.erb +28 -7
  51. data/cookbooks/scratchify/templates/user.json.erb +1 -1
  52. data/from-scratch.gemspec +1 -0
  53. data/lib/from-scratch.rb +51 -9
  54. data/lib/from-scratch/version.rb +2 -2
  55. data/metadata.rb +1 -0
  56. data/templates/node.json.erb +28 -7
  57. data/templates/user.json.erb +1 -1
  58. metadata +50 -3
@@ -2,5 +2,5 @@
2
2
  "id": "deploy",
3
3
  "name": "deploy",
4
4
  "groups": ["deploy"],
5
- "ssh_keys": ["<%= ssh_pub_key %>"]
5
+ "ssh_keys": ["<%= @options.ssh_pub_key %>"]
6
6
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: from-scratch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Shaydurov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-its
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: pry
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -425,6 +439,40 @@ files:
425
439
  - cookbooks/rsyslog/templates/default/omnios-manifest.xml.erb
426
440
  - cookbooks/rsyslog/templates/default/rsyslog.conf.erb
427
441
  - cookbooks/rsyslog/templates/smartos/50-default.conf.erb
442
+ - cookbooks/ruby_build/CHANGELOG.md
443
+ - cookbooks/ruby_build/README.md
444
+ - cookbooks/ruby_build/attributes/default.rb
445
+ - cookbooks/ruby_build/libraries/ruby_build_recipe_helpers.rb
446
+ - cookbooks/ruby_build/metadata.json
447
+ - cookbooks/ruby_build/providers/ruby.rb
448
+ - cookbooks/ruby_build/recipes/default.rb
449
+ - cookbooks/ruby_build/resources/ruby.rb
450
+ - cookbooks/ruby_rbenv/CHANGELOG.md
451
+ - cookbooks/ruby_rbenv/README.md
452
+ - cookbooks/ruby_rbenv/attributes/default.rb
453
+ - cookbooks/ruby_rbenv/libraries/chef_provider_package_rbenvrubygems.rb
454
+ - cookbooks/ruby_rbenv/libraries/chef_rbenv_mixin.rb
455
+ - cookbooks/ruby_rbenv/libraries/chef_rbenv_recipe_helpers.rb
456
+ - cookbooks/ruby_rbenv/libraries/chef_rbenv_script_helpers.rb
457
+ - cookbooks/ruby_rbenv/libraries/matchers.rb
458
+ - cookbooks/ruby_rbenv/metadata.json
459
+ - cookbooks/ruby_rbenv/providers/global.rb
460
+ - cookbooks/ruby_rbenv/providers/plugin.rb
461
+ - cookbooks/ruby_rbenv/providers/rehash.rb
462
+ - cookbooks/ruby_rbenv/providers/ruby.rb
463
+ - cookbooks/ruby_rbenv/providers/script.rb
464
+ - cookbooks/ruby_rbenv/recipes/default.rb
465
+ - cookbooks/ruby_rbenv/recipes/system.rb
466
+ - cookbooks/ruby_rbenv/recipes/system_install.rb
467
+ - cookbooks/ruby_rbenv/recipes/user.rb
468
+ - cookbooks/ruby_rbenv/recipes/user_install.rb
469
+ - cookbooks/ruby_rbenv/resources/gem.rb
470
+ - cookbooks/ruby_rbenv/resources/global.rb
471
+ - cookbooks/ruby_rbenv/resources/plugin.rb
472
+ - cookbooks/ruby_rbenv/resources/rehash.rb
473
+ - cookbooks/ruby_rbenv/resources/ruby.rb
474
+ - cookbooks/ruby_rbenv/resources/script.rb
475
+ - cookbooks/ruby_rbenv/templates/default/rbenv.sh.erb
428
476
  - cookbooks/runit/.kitchen.cloud.yml
429
477
  - cookbooks/runit/.kitchen.yml
430
478
  - cookbooks/runit/.rspec
@@ -625,4 +673,3 @@ signing_key:
625
673
  specification_version: 4
626
674
  summary: Your last command to bootstrap the whole Rails app
627
675
  test_files: []
628
- has_rdoc: