ops_team 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 +4 -4
- data/lib/builtins/version.rb +26 -0
- data/ops_team.gemspec +28 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f947ab7c489798b9868dde0124578cfbc747baee9017edab35ddeed55328e27
|
4
|
+
data.tar.gz: 49e885e7155a06c8960dadd505713a2da32081537a7998a4b6fc6c0aa6cb916b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7fd8380653accb913cccc03b22b1a5463b9da28305df09587f9c2c21c9adf2c43f11217fadf4746a65e3f685ff88e258735f5e34a338846dea77f492f2919e
|
7
|
+
data.tar.gz: 7ceea9ca0c2ced123f2afa57a6d33901546fbaff1b91fee357e66b9a85d1e91c3fb64dac9206552010bca2033f18fe285156320bae422d468b68c60b91de4234
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
|
5
|
+
require "output"
|
6
|
+
|
7
|
+
module Builtins
|
8
|
+
class Version < Builtin
|
9
|
+
GEMSPEC_FILE = "#{__dir__}/../../ops_team.gemspec"
|
10
|
+
|
11
|
+
def run
|
12
|
+
unless gemspec
|
13
|
+
Output.error("Unable to load gemspec at '#{GEMSPEC_FILE}")
|
14
|
+
return false
|
15
|
+
end
|
16
|
+
|
17
|
+
Output.out(gemspec.version)
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def gemspec
|
23
|
+
@gemspec ||= Gem::Specification.load(GEMSPEC_FILE)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/ops_team.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = 'ops_team'
|
5
|
+
s.version = '0.2.1'
|
6
|
+
s.authors = [
|
7
|
+
'nickthecook@gmail.com'
|
8
|
+
]
|
9
|
+
s.date = '2020-05-29'
|
10
|
+
s.summary = 'ops_team handles basic operations tasks for your project, driven by YAML config'
|
11
|
+
s.homepage = 'https://github.com/nickthecook/ops'
|
12
|
+
s.files = Dir[
|
13
|
+
'Gemfile',
|
14
|
+
'bin/*',
|
15
|
+
'lib/*',
|
16
|
+
'etc/*',
|
17
|
+
'lib/builtins/*',
|
18
|
+
'lib/builtins/helpers/*',
|
19
|
+
'lib/dependencies/*',
|
20
|
+
'loader.rb',
|
21
|
+
'ops_team.gemspec'
|
22
|
+
]
|
23
|
+
s.executables << 'ops'
|
24
|
+
s.required_ruby_version = '~> 2.5'
|
25
|
+
s.add_runtime_dependency 'colorize', '~> 0.8', '>= 0.8.1'
|
26
|
+
s.add_runtime_dependency 'require_all', '~> 1.1', '>= 1.1.6'
|
27
|
+
s.license = 'GPL-3.0-only'
|
28
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ops_team
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nickthecook@gmail.com
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/builtins/helpers/dependency_handler.rb
|
72
72
|
- lib/builtins/init.rb
|
73
73
|
- lib/builtins/up.rb
|
74
|
+
- lib/builtins/version.rb
|
74
75
|
- lib/dependencies/apk.rb
|
75
76
|
- lib/dependencies/apt.rb
|
76
77
|
- lib/dependencies/brew.rb
|
@@ -87,6 +88,7 @@ files:
|
|
87
88
|
- lib/output.rb
|
88
89
|
- lib/secrets.rb
|
89
90
|
- loader.rb
|
91
|
+
- ops_team.gemspec
|
90
92
|
homepage: https://github.com/nickthecook/ops
|
91
93
|
licenses:
|
92
94
|
- GPL-3.0-only
|