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 +4 -4
- data/Gemfile.lock +3 -1
- data/lib/scone/system.rb +43 -0
- data/lib/scone/version.rb +1 -1
- data/scone.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628420bef6125a203fabb6bace042dde435fe4ee933339d35c41ae8f02ff0b1e
|
4
|
+
data.tar.gz: ca72b097160484c8183182a653288b85c2323d79df18483d0c8c855a3231188b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c22ecc280c169899d391842a4502160fc94668e40e9a3de86db66a37b7b87899db77d6f77e169e474abe6eb040e4ac3290c262d8e21a29c1b4da6ae022100b2
|
7
|
+
data.tar.gz: f6d5aa8edcfe8b13520029842ccd07ec6e71393951153aedf54b55b3f50a5f692154c5cae83b9f126d246b2e0965b5c767aebfc03518d36d9fab333c53b59f65
|
data/Gemfile.lock
CHANGED
data/lib/scone/system.rb
ADDED
@@ -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
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.
|
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
|