ops_team 0.1.1 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa5c498bf634206ab5ef4e53313731fb1ab8ee71456051d03f0b50d7b98f71ab
4
- data.tar.gz: 6167a9ec3c12915fe62f3ccc3de1ce2a7f22351d32a7b2c10d8bb2b3c6da291d
3
+ metadata.gz: d820e5351f0a68d4d63ca27f0d4e6078bab76f8e138f184f5959f0eac76bea75
4
+ data.tar.gz: a4aab1508836ca2f41dae26b485c216b101ea05797c2558ff44de0cbed51034b
5
5
  SHA512:
6
- metadata.gz: 0273b1834ceb76c119328e45574ba27a924bb9ba50334661ad78ffebee8883f6efa0de75f8a97536d351103e36c64accd29ac1ae68892085828600b1c85de2fb
7
- data.tar.gz: f021f9ea483736c3e13692d58f9284c105117fac4b1b873dd8918b9e5b123b4bd900c8b4735805a1b7f5f149c4ff8fb5c9a5f5efafb5e75644c1c3e9ebbf5001
6
+ metadata.gz: a8b4d791b1cfad1f915563a5d564cbd5a01b07594eb6cd3392895ffb6a328fabd6329a92d1bd1ebd7522bf6d0b0095a929dae523701e2e65c0924f268e59aa44
7
+ data.tar.gz: 31ca17d14904e76adbb172f684222267b588495aabb506e2cc85e1a9cb1fb078c18d30cb855d6a93d40ce98a153a511cb346be63d9860782aa957ec9c142ba39
@@ -22,5 +22,8 @@ actions:
22
22
  command: terraform plan
23
23
  alias: p
24
24
  graph:
25
- command: terraform graph
25
+ command: terraform graph | dot -T pdf -o resource_graph.pdf
26
26
  alias: g
27
+ open-graph:
28
+ command: ops graph && open resource_graph.pdf
29
+ alias: og
@@ -22,7 +22,7 @@ module Builtins
22
22
  end
23
23
 
24
24
  def dependencies_for(type, names)
25
- dependency_class = Dependencies.const_get(type.capitalize.to_sym)
25
+ dependency_class = Dependencies.const_get(type.capitalize.to_sym, false)
26
26
 
27
27
  names.map { |name| dependency_class.new(name) }
28
28
  rescue NameError
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dependency'
4
+
5
+ module Dependencies
6
+ class Dir < Dependency
7
+ def met?
8
+ execute("test -d #{name}")
9
+ end
10
+
11
+ def meet
12
+ execute("mkdir #{name}")
13
+ end
14
+
15
+ def unmeet
16
+ # do nothing; we don't want to delete the directory on an `ops down`
17
+ true
18
+ end
19
+
20
+ def should_meet?
21
+ true
22
+ end
23
+ end
24
+ end
data/lib/ops.rb CHANGED
@@ -48,7 +48,7 @@ class Ops
48
48
  end
49
49
 
50
50
  def builtin
51
- @builtin ||= Builtins.const_get(builtin_class_name).new(@args, config)
51
+ @builtin ||= Builtins.const_get(builtin_class_name, false).new(@args, config)
52
52
  rescue NameError
53
53
  # this means there isn't a builtin with that name in that module
54
54
  nil
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.1.1
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com
@@ -75,6 +75,7 @@ files:
75
75
  - lib/dependencies/brew.rb
76
76
  - lib/dependencies/cask.rb
77
77
  - lib/dependencies/custom.rb
78
+ - lib/dependencies/dir.rb
78
79
  - lib/dependencies/docker.rb
79
80
  - lib/dependencies/gem.rb
80
81
  - lib/dependencies/terraform.rb
@@ -83,7 +84,7 @@ files:
83
84
  - lib/options.rb
84
85
  - lib/output.rb
85
86
  - loader.rb
86
- homepage:
87
+ homepage: https://github.com/nickthecook/ops
87
88
  licenses:
88
89
  - GPL-3.0-only
89
90
  metadata: {}
@@ -93,9 +94,9 @@ require_paths:
93
94
  - lib
94
95
  required_ruby_version: !ruby/object:Gem::Requirement
95
96
  requirements:
96
- - - ">="
97
+ - - "~>"
97
98
  - !ruby/object:Gem::Version
98
- version: '0'
99
+ version: '2.5'
99
100
  required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  requirements:
101
102
  - - ">="