scone 0.1.9 → 0.1.10

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: 99500c9ae644a78f8231b5ec64c2931cffd939021ba436b924c4a92544bc16be
4
- data.tar.gz: 95fc4841209e96936bc7b08b4fba987c701ccbc1d7679ed4263049dfde49fd55
3
+ metadata.gz: 628420bef6125a203fabb6bace042dde435fe4ee933339d35c41ae8f02ff0b1e
4
+ data.tar.gz: ca72b097160484c8183182a653288b85c2323d79df18483d0c8c855a3231188b
5
5
  SHA512:
6
- metadata.gz: ffafa062e3fae1b706bae8878330fad4f852082ff70250a79a0fbcf545d6827803719c1c9d206427f9e543c93446c4f454e5370e309832d9c93221be1aa363e7
7
- data.tar.gz: daa854f58fd9acc132b6e06ebacfacdb69c5c357f024178805f5509e7b0b3a745bfcb45cd683b050e7d305d0563916dd0ae675a2e8510dde63a2c4a3e5b7babc
6
+ metadata.gz: 8c22ecc280c169899d391842a4502160fc94668e40e9a3de86db66a37b7b87899db77d6f77e169e474abe6eb040e4ac3290c262d8e21a29c1b4da6ae022100b2
7
+ data.tar.gz: f6d5aa8edcfe8b13520029842ccd07ec6e71393951153aedf54b55b3f50a5f692154c5cae83b9f126d246b2e0965b5c767aebfc03518d36d9fab333c53b59f65
data/Gemfile.lock CHANGED
@@ -1,12 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scone (0.1.8)
4
+ scone (0.1.9)
5
+ awesome_spawn (~> 1.5)
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
9
10
  ast (2.4.2)
11
+ awesome_spawn (1.5.0)
10
12
  diff-lcs (1.4.4)
11
13
  parallel (1.21.0)
12
14
  parser (3.0.2.0)
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Scone - A Unified SDK for Linux OS Distributions in Ruby
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require "awesome_spawn"
20
+
21
+ # Scone Module
22
+ module Scone
23
+ # Command Class
24
+ class Command
25
+ def initialize(command)
26
+ @command = command
27
+ end
28
+
29
+ def run
30
+ result = AwesomeSpawn.run(@command)
31
+ @exit_status = result.exit_status
32
+ @command_line = result.command_line
33
+ @output = result.output
34
+ @error = result.error
35
+ @exit_status
36
+ end
37
+
38
+ attr_reader :exit_status
39
+ attr_reader :command_line
40
+ attr_reader :output
41
+ attr_reader :error
42
+ end
43
+ end
data/lib/scone/version.rb CHANGED
@@ -18,5 +18,5 @@
18
18
 
19
19
  # Scone Module
20
20
  module Scone
21
- VERSION = "0.1.9"
21
+ VERSION = "0.1.10"
22
22
  end
data/scone.gemspec CHANGED
@@ -48,6 +48,7 @@ Gem::Specification.new do |spec|
48
48
 
49
49
  # Uncomment to register a new dependency of your gem
50
50
  # spec.add_dependency "example-gem", "~> 1.0"
51
+ spec.add_dependency("awesome_spawn", "~> 1.5")
51
52
 
52
53
  # For more information and examples about making a new gem, checkout our
53
54
  # guide at: https://bundler.io/guides/creating_gem.html
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - clivern
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2021-10-25 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_spawn
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
13
27
  description: A Set of Modules to work with a different Linux Operating System Distributions
14
28
  in Ruby.
15
29
  email:
@@ -39,6 +53,7 @@ files:
39
53
  - lib/scone/io/file.rb
40
54
  - lib/scone/io/system.rb
41
55
  - lib/scone/platform.rb
56
+ - lib/scone/system.rb
42
57
  - lib/scone/ubuntu/group.rb
43
58
  - lib/scone/ubuntu/ip.rb
44
59
  - lib/scone/ubuntu/package.rb