ops_team 0.2.2 → 0.2.3
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/etc/ops.template.yml +2 -0
- data/etc/ruby.template.yml +8 -0
- data/etc/terraform.template.yml +7 -0
- data/lib/builtins/down.rb +2 -2
- data/lib/builtins/env.rb +1 -1
- data/lib/builtins/help.rb +1 -1
- data/lib/builtins/init.rb +1 -1
- data/lib/builtins/up.rb +1 -1
- data/lib/builtins/version.rb +1 -1
- data/ops_team.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3df06362d31ad96870848712991804c147d63f780395587ea7237eacabfbb683
|
|
4
|
+
data.tar.gz: d125dfaa4423fa07eae13672f5c045f064b084f2c7c05db3e76ab5088b92f410
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e7f27173645a685d1146c9a8e73565c9cee017e0bdeb834db0258f17b4e9d655d2f19949b386f4b401818ef37d45e4c3552c31b19571c580de0f6c60b3d4638
|
|
7
|
+
data.tar.gz: 6f5e9398f184381b503cf579b7e8468db32a5ce9707b6f6818b9f55b6fba94054a96fbfa6d99fc7b0bce0159f63fbf92f53506712fafebe925622753b143eae1
|
data/etc/ops.template.yml
CHANGED
data/etc/ruby.template.yml
CHANGED
|
@@ -7,23 +7,31 @@ dependencies:
|
|
|
7
7
|
actions:
|
|
8
8
|
start:
|
|
9
9
|
command: echo update me
|
|
10
|
+
description: starts the app
|
|
10
11
|
stop:
|
|
11
12
|
command: echo update me too
|
|
13
|
+
description: stops the app
|
|
12
14
|
test:
|
|
13
15
|
command: rspec
|
|
14
16
|
alias: t
|
|
17
|
+
description: runs unit tests
|
|
15
18
|
test-watch:
|
|
16
19
|
command: rerun -x ops test
|
|
17
20
|
alias: tw
|
|
21
|
+
description: runs unit tests every time a file changes
|
|
18
22
|
lint:
|
|
19
23
|
command: bundle exec rubocop --safe-auto-correct
|
|
20
24
|
alias: l
|
|
25
|
+
description: runs rubocop with safe autocorrect
|
|
21
26
|
build:
|
|
22
27
|
command: gem build *.gemspec
|
|
23
28
|
alias: b
|
|
29
|
+
description: builds the gem
|
|
24
30
|
install:
|
|
25
31
|
command: gem install `ls -t *.gem | head -n1`
|
|
26
32
|
alias: i
|
|
33
|
+
description: installs the gem
|
|
27
34
|
build-and-install:
|
|
28
35
|
command: ops build && ops install
|
|
29
36
|
alias: bi
|
|
37
|
+
description: builds and installs the gem
|
data/etc/terraform.template.yml
CHANGED
|
@@ -9,21 +9,28 @@ actions:
|
|
|
9
9
|
apply:
|
|
10
10
|
command: terraform apply
|
|
11
11
|
alias: a
|
|
12
|
+
description: runs 'terraform apply'
|
|
12
13
|
apply-auto-approve:
|
|
13
14
|
command: terraform apply --auto-approve
|
|
14
15
|
alias: aa
|
|
16
|
+
description: runs 'terraform apply' with auto-approve
|
|
15
17
|
destroy:
|
|
16
18
|
command: terraform destroy
|
|
17
19
|
alias: d
|
|
20
|
+
description: runs 'terraform destroy'
|
|
18
21
|
destroy-auto-approve:
|
|
19
22
|
command: terraform destroy --auto-approve
|
|
20
23
|
alias: dd
|
|
24
|
+
description: runs 'terraform destroy' with auto-approve
|
|
21
25
|
plan:
|
|
22
26
|
command: terraform plan
|
|
23
27
|
alias: p
|
|
28
|
+
description: runs 'terraform plan'
|
|
24
29
|
graph:
|
|
25
30
|
command: terraform graph | dot -T pdf -o resource_graph.pdf
|
|
26
31
|
alias: g
|
|
32
|
+
description: runs 'terraform graph'
|
|
27
33
|
open-graph:
|
|
28
34
|
command: ops graph && open resource_graph.pdf
|
|
29
35
|
alias: og
|
|
36
|
+
description: opens the terraform graph with the OS 'open' command
|
data/lib/builtins/down.rb
CHANGED
|
@@ -10,11 +10,11 @@ module Builtins
|
|
|
10
10
|
class Down < Builtin
|
|
11
11
|
class << self
|
|
12
12
|
def description
|
|
13
|
-
"
|
|
13
|
+
"stops dependent services listed in ops.yml"
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
def run
|
|
18
18
|
# TODO: return a success/failure status to the caller
|
|
19
19
|
unmeet_dependencies
|
|
20
20
|
end
|
data/lib/builtins/env.rb
CHANGED
data/lib/builtins/help.rb
CHANGED
data/lib/builtins/init.rb
CHANGED
data/lib/builtins/up.rb
CHANGED
data/lib/builtins/version.rb
CHANGED
data/ops_team.gemspec
CHANGED