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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ops.orig +42 -0
  3. data/ops_team.gemspec +1 -1
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74e3e7c3b99af394b1eb19ee35cc137cfde7a883a4236a56d2fb0010564b3d2d
4
- data.tar.gz: 7765ee48f6a6e38e9443a8926354f7a126b817ad09b937ff0adad839e458a0d6
3
+ metadata.gz: '085bb6a99b3ae3f07cc5346ae968145952a4ccf14badc37c6407bc03bd3369e7'
4
+ data.tar.gz: 19b28b9e8a20ce504bbf0c60c9a21eb3cf10ec5cd8230452863e12236db30eed
5
5
  SHA512:
6
- metadata.gz: b2aa262433e8a724f8255c42c3a5929baae08752029aeb3c80302105b4bb472113cafe2216db1ea86af54d238102eed0c27459b38d34aab34970b79dced5ce68
7
- data.tar.gz: f1d3572c52f15e3ac504871617b60e992ad25a57545e50444f9409faa2a3371b883c731e6c4ec462b928cdfd50a8c46c4123110e44f25435f290a3c5bebf1142
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ops_team'
5
- s.version = '1.20.0'
5
+ s.version = '1.20.1'
6
6
  s.authors = [
7
7
  'nickthecook@gmail.com'
8
8
  ]
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.0
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