ops_team 0.13.2 → 0.13.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/lib/ops.rb +6 -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: ea3bc79f136cc22e2710bba983cb23d14ed332d7f9a4e14e1bf94b53f17e5a1b
|
|
4
|
+
data.tar.gz: 404cc0d081d9d1bbe4082fd4e24532322f5a1324d8063a6e6eaaea615a7a0321
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1df25521312cd853043220089fed8b33b0bd3bbaa192ac3720e17528a14615ecd74ac3a17d69d3c87209f571149ef8d6d9adc4ce877cad9ef8fd0bf0b36fe0ef
|
|
7
|
+
data.tar.gz: 261a40eac02451b42d6c331bb2281647f687c04e2aafba7523d42a70bcc37e486904cf58993869452641f50d1ce07c2ea417054013c726b28cc75c6b6f6ee7f6
|
data/lib/ops.rb
CHANGED
|
@@ -27,6 +27,8 @@ class Ops
|
|
|
27
27
|
ERROR_LOADING_APP_CONFIG_EXIT_CODE = 66
|
|
28
28
|
MIN_VERSION_NOT_MET_EXIT_CODE = 67
|
|
29
29
|
|
|
30
|
+
RECOMMEND_HELP_TEXT = "Run 'ops help' for a list of builtins and actions."
|
|
31
|
+
|
|
30
32
|
class << self
|
|
31
33
|
def project_name
|
|
32
34
|
File.basename(::Dir.pwd)
|
|
@@ -48,7 +50,7 @@ class Ops
|
|
|
48
50
|
run_action
|
|
49
51
|
rescue UnknownActionError => e
|
|
50
52
|
Output.error(e.to_s)
|
|
51
|
-
print_did_you_mean
|
|
53
|
+
Output.out(RECOMMEND_HELP_TEXT) unless print_did_you_mean
|
|
52
54
|
exit(UNKNOWN_ACTION_EXIT_CODE)
|
|
53
55
|
end
|
|
54
56
|
|
|
@@ -57,6 +59,7 @@ class Ops
|
|
|
57
59
|
def syntax_valid?
|
|
58
60
|
if @action_name.nil?
|
|
59
61
|
Output.error("Usage: ops <action>")
|
|
62
|
+
Output.out(RECOMMEND_HELP_TEXT)
|
|
60
63
|
false
|
|
61
64
|
else
|
|
62
65
|
true
|
|
@@ -67,6 +70,8 @@ class Ops
|
|
|
67
70
|
suggestions = did_you_mean.check(@action_name)
|
|
68
71
|
|
|
69
72
|
Output.out("Did you mean '#{suggestions.join(", ")}'?") if suggestions.any?
|
|
73
|
+
|
|
74
|
+
suggestions.any?
|
|
70
75
|
end
|
|
71
76
|
|
|
72
77
|
def did_you_mean
|
data/ops_team.gemspec
CHANGED