kanrisuru 0.16.5 → 0.16.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44eda2d0bb8165ff1df3d763531ffdb64a442b390e6e97ccda473105ddd8b04b
4
- data.tar.gz: 14967498be11e552b7f546984173abf279387649da8fc9d45a98b42ed06aaa4f
3
+ metadata.gz: d786b070ee49222d70b394c5511e792c62899aff324f6f07b2a2edcd219b96a6
4
+ data.tar.gz: 1be24b3977601eeb24c0702b4e13d82fa86a36df561a5b78bf67bc488a752b82
5
5
  SHA512:
6
- metadata.gz: 5c281ab5f1e6fa063a5f11df3cb7138fe0acd19bb810aaf2e01685b847a1ec7d972420c86e155bc32b23a9d9bf1796077dfa753edfa0c62f7ec671ee81198d09
7
- data.tar.gz: 7c64b72d543a18e1eee6d8dad9530c7e281a3856003b15d5587bf1351dd55fbbb49a8177e2c8a8cc749549f587e2b42fe76692dd436f0b1d9f57431d9e36cb9e
6
+ metadata.gz: 33702dac744a1d6f232aebef781c447a67a4e4aa76af7fe89edb36284668937f3dc4c18dd152c5bc58811562cfdc68e983b9f9e6af3bbfb879d3c8edd9fccf61
7
+ data.tar.gz: ab67d01b9f71a8e7ba5dad6b060a1a9beb4f36fc36493b961524ccded3a0672a93fd3655f4ad1dd0d1aaf9828c49c60366a0a0a06d16b4ca93a0fa69cbc81f3b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.16.6 (December 26, 2021) ##
2
+ * Add `delete` to fstab class to delete an entry from the fstab.
3
+
1
4
  ## Kanrisuru 0.16.5 (December 25, 2021) ##
2
5
  * Refactor `dmi_field_translate` to reduce complexity.
3
6
 
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- <p align='center'>
2
- <img src="https://s3.us-east-2.amazonaws.com/kanrisuru.com/kanrisuru-banner-02.png" width="600" />
3
- </p>
1
+ <h1>
2
+ <img src="./logo/kanrisuru-logo.png" alt="Kanrisuru" width="400" height="100%"/>
3
+ </h1>
4
4
 
5
- <p align="center">
5
+ <p>
6
6
  <a href="https://rubygems.org/gems/kanrisuru">
7
7
  <img src="https://img.shields.io/gem/v/kanrisuru?style=flat-square" alt="Latest version" />
8
8
  </a>
@@ -15,8 +15,6 @@
15
15
  <img src="https://img.shields.io/codeclimate/maintainability/avamia/kanrisuru?style=flat-square" alt="Code Climate maintainability" />
16
16
  </p>
17
17
 
18
- # Kanrisuru
19
-
20
18
  Kanrisuru (manage) helps you remotely control infrastructure using Ruby. This is done over SSH. I'm working on building up some basic functionality to help quickly provision, deploy and manage a single host or cluster of hosts.
21
19
 
22
20
  The idea behind this project is not to replace the numerous other projects to manage your infrastrucutre, however, I've found there usually meant to be a standalone project that have their own ecosystem. With Kanrisuru, you essentailly plug the library directly into your ruby project.
@@ -104,7 +102,6 @@ HOSTS=ubuntu,debian,centos rspec
104
102
 
105
103
  This will run tests on the ubuntu, debian and centos instances.
106
104
 
107
-
108
105
  Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
109
106
 
110
107
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
@@ -100,4 +100,4 @@ module Kanrisuru
100
100
  end
101
101
  end
102
102
  end
103
- end
103
+ end
@@ -21,6 +21,12 @@ module Kanrisuru
21
21
  get_entry(device)
22
22
  end
23
23
 
24
+ def delete(device)
25
+ return false unless @entries.key?(device)
26
+
27
+ @entries.delete(device)
28
+ end
29
+
24
30
  def get_entry(device)
25
31
  result = @entries[device]
26
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.16.5'
4
+ VERSION = '0.16.6'
5
5
  end
Binary file
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe Kanrisuru::Remote::Cluster do
6
+ before(:all) do
7
+ StubNetwork.stub!
8
+ end
9
+
10
+ after(:all) do
11
+ StubNetwork.unstub!
12
+ end
13
+
14
+ let(:host) do
15
+ Kanrisuru::Remote::Host.new(
16
+ host: 'localhost',
17
+ username: 'ubuntu',
18
+ keys: ['id_rsa']
19
+ )
20
+ end
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.5
4
+ version: 0.16.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-25 00:00:00.000000000 Z
11
+ date: 2021-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel_tests
@@ -149,8 +149,6 @@ files:
149
149
  - ".gitignore"
150
150
  - ".rspec"
151
151
  - ".rubocop.yml"
152
- - ".rubocop_todo.yml"
153
- - ".travis.yml"
154
152
  - CHANGELOG.md
155
153
  - CODE_OF_CONDUCT.md
156
154
  - Gemfile
@@ -442,6 +440,7 @@ files:
442
440
  - lib/kanrisuru/util/os_family.rb
443
441
  - lib/kanrisuru/util/signal.rb
444
442
  - lib/kanrisuru/version.rb
443
+ - logo/kanrisuru-logo.png
445
444
  - spec/functional/core/apt_spec.rb
446
445
  - spec/functional/core/archive_spec.rb
447
446
  - spec/functional/core/disk_spec.rb
@@ -470,6 +469,7 @@ files:
470
469
  - spec/functional/remote/cluster_spec.rb
471
470
  - spec/functional/remote/cpu_spec.rb
472
471
  - spec/functional/remote/env_spec.rb
472
+ - spec/functional/remote/fstab_spec.rb
473
473
  - spec/functional/result_spec.rb
474
474
  - spec/helper/expect_helpers.rb
475
475
  - spec/helper/hosts.json
data/.rubocop_todo.yml DELETED
File without changes
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.1
6
- before_install: gem install bundler -v 2.1.4