ops_team 1.20.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ops.orig +42 -0
- data/ops_team.gemspec +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '085bb6a99b3ae3f07cc5346ae968145952a4ccf14badc37c6407bc03bd3369e7'
|
4
|
+
data.tar.gz: 19b28b9e8a20ce504bbf0c60c9a21eb3cf10ec5cd8230452863e12236db30eed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1921cdb2c1ec54c84e4c812bb466c1825451e2d9043aeded6dd136a3d00772fbbc72f4a4d261dccc40dc231f904e216d35eb1ed4bd4c6636b99404f0ec2dee4
|
7
|
+
data.tar.gz: fbc54e82f30e9d21f420b196e911da14d613bc5d3104ac9e00a9db6e1df95a2930cf1b2e7c4001c0105a685533f446f08f32befb992480bc8d436b1569311451
|
data/bin/ops.orig
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
5
|
+
|
6
|
+
require_relative '../lib/profiler'
|
7
|
+
require 'optparse'
|
8
|
+
|
9
|
+
def usage
|
10
|
+
puts "Usage: ops [-f|--file <ops_yml>] action [<action args>"
|
11
|
+
puts " ops_yml: the config file to load instead of './ops.yml'"
|
12
|
+
puts " action_args: arguments to the action loaded from the config file; depends on the action"
|
13
|
+
|
14
|
+
exit(1)
|
15
|
+
end
|
16
|
+
|
17
|
+
options = {}
|
18
|
+
status = -1
|
19
|
+
|
20
|
+
while ARGV[0]&.match(/^-/)
|
21
|
+
opt = ARGV.shift
|
22
|
+
case opt
|
23
|
+
when '-f', '--file'
|
24
|
+
usage unless ARGV.length >= 1
|
25
|
+
|
26
|
+
options[:file] = ARGV.shift
|
27
|
+
else
|
28
|
+
usage
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
Profiler.measure("bin:require") do
|
33
|
+
require_relative "../loader"
|
34
|
+
end
|
35
|
+
|
36
|
+
Profiler.measure("bin:run") do
|
37
|
+
status = Ops.new(ARGV, config_file: options[:file]).run
|
38
|
+
end
|
39
|
+
|
40
|
+
Profiler.add_measurement("bin:all", Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time)
|
41
|
+
Output.error(Profiler.summary) if Profiler.summary
|
42
|
+
exit status
|
data/ops_team.gemspec
CHANGED
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: 1.20.
|
4
|
+
version: 1.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nickthecook@gmail.com
|
@@ -180,6 +180,7 @@ files:
|
|
180
180
|
- Gemfile
|
181
181
|
- bin/benchmark
|
182
182
|
- bin/ops
|
183
|
+
- bin/ops.orig
|
183
184
|
- bin/print_config
|
184
185
|
- bin/print_secrets
|
185
186
|
- bin/tag
|