prepper 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eb4e48bf36f79d83d5da672215e3ad1f4994eaa5a652532be310d5600c2597a
4
- data.tar.gz: 7bfa00815d7aded4c7933e84e36a87fdc9388fa9f9c5631bec0e2d57379a2245
3
+ metadata.gz: 77a7a8da09385a93046fcd636b90eaddd34fe8bc4ed9c3a9a103e0f5e383402a
4
+ data.tar.gz: 4f0ff1b545ba8c603f362ede36ab62bd63f8352c26de97830d2cabf8fabbd3c0
5
5
  SHA512:
6
- metadata.gz: 69f96c1720596ecb24bc4ce289b29a16821b6c9f0227f6b2cd34778b5db5122bd1772eff17c4aca39867d417381b2e931533441d3213bf9a4660816cf03c4930
7
- data.tar.gz: 909b0621f3c16c31717b4a4e968f6b5e60a4fc9f3f54836cc65c5a33879042435a3bccad79e82351f3e9d466f5b3d7d7482f458280b1bf4fc83ee428f38d5c21
6
+ metadata.gz: d251c3448c12d5accc5ee510b42df6180fcbaa30f2757ec1abdfd36ac25c8875a93f06f07fff6e80350a0809185dea9cba088e5f107c6b090e01088aa2ce8ffe
7
+ data.tar.gz: 28fd214634b0a79c171c5d9712686e84ebe10084f7e5a9f854918fd4bb0bc998dbcd2b010185d0b738833fc20d18a4dcc60ea1f5e4d595af526a77684b114160
@@ -0,0 +1,33 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ workflow_dispatch:
7
+ # schedule:
8
+ # - cron: '42 5 * * *'
9
+
10
+ jobs:
11
+ test:
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby: [ '3.0' ]
16
+
17
+ runs-on: ubuntu-latest
18
+ name: Ruby ${{matrix.ruby}}
19
+ container: ruby:${{matrix.ruby}}
20
+
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+
24
+ - name: Show ruby Version
25
+ run: |
26
+ ruby -v
27
+
28
+ - name: Install Modules
29
+ run: ./bin/setup
30
+
31
+ - name: Run tests
32
+ run: rake test
33
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prepper (0.2.0)
4
+ prepper (0.2.1)
5
5
  sshkit
6
6
  tty-option
7
7
  zeitwerk
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Prepper
2
2
 
3
3
  Prepper is a simple server provisioning tool, built on top of SSHKit. You can
4
- use it to script your server build process.
4
+ use it to script your server build process. It is heavily inspired by (Sprinkle)[https://github.com/sprinkle-tool/sprinkle], but Sprinkle doesn't seem to be maintained anymore, that's why Prepper was born.
5
5
 
6
6
 
7
7
  ## Installation
@@ -58,7 +58,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
58
58
 
59
59
  ## Contributing
60
60
 
61
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/prepper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/prepper/blob/master/CODE_OF_CONDUCT.md).
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/gregmolnar/prepper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/gregmolnar/prepper/blob/master/CODE_OF_CONDUCT.md).
62
62
 
63
63
 
64
64
  ## License
@@ -67,4 +67,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
67
67
 
68
68
  ## Code of Conduct
69
69
 
70
- Everyone interacting in the Prepper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/prepper/blob/master/CODE_OF_CONDUCT.md).
70
+ Everyone interacting in the Prepper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/gregmolnar/prepper/blob/master/CODE_OF_CONDUCT.md).
@@ -11,13 +11,13 @@ module Prepper
11
11
 
12
12
  append_text 'export PATH="$HOME/.rbenv/bin:$PATH"', "/home/#{user}/.profile"
13
13
  append_text 'eval "$(rbenv init -)"', "/home/#{user}/.profile"
14
- chown "/home/#{user}/.profile", 'deploy:deploy'
14
+ chown "/home/#{user}/.profile", "#{user}:#{user}"
15
15
  end
16
16
 
17
17
  # install a given ruby version for a given user
18
18
  # @param user [String] name of the user
19
19
  # @param version [String] ruby version
20
- def install_ruby(user, version)
20
+ def install_ruby(user, version, opts = '')
21
21
  @commands << Command.new("sudo -u #{user} -i RUBY_CONFIGURE_OPTS='#{opts}' rbenv install #{version}", verifier: has_directory?("/home/#{user}/.rbenv/versions/#{version}"))
22
22
 
23
23
  @commands << Command.new("sudo -u #{user} -i rbenv rehash")
@@ -1,3 +1,3 @@
1
1
  module Prepper
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prepper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Molnar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-17 00:00:00.000000000 Z
11
+ date: 2023-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk
@@ -74,6 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - ".github/workflows/ci.yml"
77
78
  - ".gitignore"
78
79
  - ".travis.yml"
79
80
  - CHANGELOG.md