wavefront-cli 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -0
- data/HISTORY.md +17 -0
- data/Rakefile +1 -1
- data/bin/wf +1 -1
- data/lib/wavefront-cli/base.rb +46 -18
- data/lib/wavefront-cli/base_write.rb +49 -33
- data/lib/wavefront-cli/commands/.rubocop.yml +7 -0
- data/lib/wavefront-cli/commands/alert.rb +0 -1
- data/lib/wavefront-cli/commands/base.rb +1 -1
- data/lib/wavefront-cli/commands/link.rb +5 -0
- data/lib/wavefront-cli/commands/window.rb +1 -0
- data/lib/wavefront-cli/commands/write.rb +1 -1
- data/lib/wavefront-cli/controller.rb +51 -21
- data/lib/wavefront-cli/derivedmetric.rb +4 -0
- data/lib/wavefront-cli/display/alert.rb +2 -0
- data/lib/wavefront-cli/display/base.rb +18 -11
- data/lib/wavefront-cli/display/metric.rb +13 -5
- data/lib/wavefront-cli/display/printer/long.rb +12 -8
- data/lib/wavefront-cli/display/printer/sparkline.rb +2 -2
- data/lib/wavefront-cli/display/printer/terse.rb +3 -1
- data/lib/wavefront-cli/display/query.rb +7 -3
- data/lib/wavefront-cli/display/write.rb +2 -0
- data/lib/wavefront-cli/event.rb +27 -16
- data/lib/wavefront-cli/exception.rb +8 -0
- data/lib/wavefront-cli/externallink.rb +30 -0
- data/lib/wavefront-cli/maintenancewindow.rb +2 -2
- data/lib/wavefront-cli/output/hcl/base.rb +21 -18
- data/lib/wavefront-cli/output/hcl/dashboard.rb +13 -38
- data/lib/wavefront-cli/output/hcl/notificant.rb +4 -2
- data/lib/wavefront-cli/output/hcl/stdlib/array.rb +22 -0
- data/lib/wavefront-cli/output/hcl/stdlib/string.rb +9 -0
- data/lib/wavefront-cli/output/wavefront/base.rb +3 -0
- data/lib/wavefront-cli/output/wavefront/query.rb +2 -2
- data/lib/wavefront-cli/query.rb +2 -0
- data/lib/wavefront-cli/report.rb +5 -2
- data/lib/wavefront-cli/{string.rb → stdlib/string.rb} +16 -12
- data/lib/wavefront-cli/version.rb +1 -1
- data/lib/wavefront-cli/write.rb +12 -4
- data/spec/spec_helper.rb +41 -24
- data/spec/wavefront-cli/commands/link_spec.rb +1 -1
- data/spec/wavefront-cli/derivedmetric_spec.rb +2 -2
- data/spec/wavefront-cli/display/base_spec.rb +2 -0
- data/spec/wavefront-cli/display/printer/long_spec.rb +1 -0
- data/spec/wavefront-cli/externallink_spec.rb +52 -4
- data/spec/wavefront-cli/output/hcl_spec.rb +3 -1
- data/spec/wavefront-cli/output/ruby_spec.rb +5 -5
- data/spec/wavefront-cli/output/wavefront/query_spec.rb +14 -9
- data/spec/wavefront-cli/output/wavefront_spec.rb +3 -1
- data/spec/wavefront-cli/query_spec.rb +2 -0
- data/spec/wavefront-cli/{string_spec.rb → stdlib/string_spec.rb} +3 -3
- data/wavefront-cli.gemspec +7 -7
- metadata +34 -30
@@ -30,7 +30,7 @@ describe "#{word} command" do
|
|
30
30
|
'User-Agent': /wavefront.*/ })
|
31
31
|
.to_return(status: 200, body: '', headers: {})
|
32
32
|
cmd_to_call(word, "delete #{id}",
|
33
|
-
{
|
33
|
+
{ method: :delete, path: "/api/v2/#{word}/#{id}" }, k)
|
34
34
|
end
|
35
35
|
|
36
36
|
cmd_to_call(word, "search id=#{id}",
|
@@ -73,7 +73,7 @@ describe "#{word} command" do
|
|
73
73
|
name: 'test_dm',
|
74
74
|
includeObsoleteMetrics: false,
|
75
75
|
processRateMinutes: 3,
|
76
|
-
tags: [
|
76
|
+
tags: %w[tag1 tag2],
|
77
77
|
query: 'ts(series)' },
|
78
78
|
headers: JSON_POST_HEADERS }, k)
|
79
79
|
end
|
@@ -149,8 +149,10 @@ class WavefrontDisplayBaseTest < MiniTest::Test
|
|
149
149
|
assert_raises(ArgumentError) { wf.human_time(123) }
|
150
150
|
assert_raises(ArgumentError) { wf.human_time(12_345_678_901_234) }
|
151
151
|
assert_equal('2017-07-07 11:23:35', wf.human_time(1_499_426_615, true))
|
152
|
+
# rubocop:disable Style/DateTime
|
152
153
|
assert_match(/^20\d\d-[01]\d-[0-3]\d [0-2]\d:[0-5]\d:[0-5]\d.\d{3}$/,
|
153
154
|
wf.human_time(DateTime.now.strftime('%Q')))
|
155
|
+
# rubocop:enable Style/DateTime
|
154
156
|
assert_match(/^20\d\d-[01]\d-[0-3]\d [0-2]\d:[0-5]\d:[0-5]\d$/,
|
155
157
|
wf.human_time(Time.now.to_i))
|
156
158
|
assert_equal('2017-07-07 11:23:35.123', wf.human_time(1_499_426_615_123,
|
@@ -3,20 +3,26 @@
|
|
3
3
|
require_relative '../spec_helper'
|
4
4
|
require_relative '../../lib/wavefront-cli/externallink'
|
5
5
|
|
6
|
-
id
|
6
|
+
id = 'lq6rPlSg2CFMSrg6'
|
7
7
|
bad_id = '__BAD__'
|
8
|
-
k
|
9
|
-
word
|
8
|
+
k = WavefrontCli::ExternalLink
|
9
|
+
word = 'link'
|
10
10
|
|
11
11
|
describe "#{word} command" do
|
12
12
|
missing_creds(word, ['list', "describe #{id}", "delete #{id}"])
|
13
|
+
|
13
14
|
list_tests(word, 'extlink', k)
|
15
|
+
|
14
16
|
cmd_to_call(word, "describe #{id}", { path: "/api/v2/extlink/#{id}" }, k)
|
17
|
+
|
15
18
|
cmd_to_call(word, "delete #{id}",
|
16
19
|
{ method: :delete, path: "/api/v2/extlink/#{id}" }, k)
|
20
|
+
|
17
21
|
invalid_ids(word, ["describe #{bad_id}", "delete #{bad_id}"])
|
22
|
+
|
18
23
|
cmd_to_call(word, "search -L 100 id~#{id}",
|
19
|
-
{ method: :post,
|
24
|
+
{ method: :post,
|
25
|
+
path: '/api/v2/search/extlink',
|
20
26
|
body: { limit: '100',
|
21
27
|
offset: 0,
|
22
28
|
query: [{ key: 'id',
|
@@ -24,4 +30,46 @@ describe "#{word} command" do
|
|
24
30
|
matchingMethod: 'CONTAINS' }],
|
25
31
|
sort: { field: 'id', ascending: true } },
|
26
32
|
headers: JSON_POST_HEADERS }, WavefrontCli::ExternalLink)
|
33
|
+
|
34
|
+
cmd_to_call(word, 'create name description template',
|
35
|
+
{ method: :post,
|
36
|
+
path: '/api/v2/extlink',
|
37
|
+
body: {
|
38
|
+
name: 'name',
|
39
|
+
template: 'template',
|
40
|
+
description: 'description'
|
41
|
+
}.to_json,
|
42
|
+
headers: JSON_POST_HEADERS },
|
43
|
+
WavefrontCli::ExternalLink)
|
44
|
+
|
45
|
+
cmd_to_call(word, 'create -m metricregex -s sourceregex name ' \
|
46
|
+
'description template',
|
47
|
+
{ method: :post,
|
48
|
+
path: '/api/v2/extlink',
|
49
|
+
body: {
|
50
|
+
name: 'name',
|
51
|
+
template: 'template',
|
52
|
+
description: 'description',
|
53
|
+
metricFilterRegex: 'metricregex',
|
54
|
+
sourceFilterRegex: 'sourceregex'
|
55
|
+
}.to_json,
|
56
|
+
headers: JSON_POST_HEADERS },
|
57
|
+
WavefrontCli::ExternalLink)
|
58
|
+
|
59
|
+
cmd_to_call(word, 'create -p key1=reg1 -p key2=reg2 ' \
|
60
|
+
'-m metricregex name description template',
|
61
|
+
{ method: :post,
|
62
|
+
path: '/api/v2/extlink',
|
63
|
+
body: {
|
64
|
+
name: 'name',
|
65
|
+
template: 'template',
|
66
|
+
description: 'description',
|
67
|
+
metricFilterRegex: 'metricregex',
|
68
|
+
pointFilterRegex: {
|
69
|
+
key1: 'reg1',
|
70
|
+
key2: 'reg2'
|
71
|
+
}
|
72
|
+
}.to_json,
|
73
|
+
headers: JSON_POST_HEADERS },
|
74
|
+
WavefrontCli::ExternalLink)
|
27
75
|
end
|
@@ -3,6 +3,8 @@
|
|
3
3
|
require_relative '../../spec_helper'
|
4
4
|
require_relative '../../../lib/wavefront-cli/output/hcl'
|
5
5
|
|
6
|
+
# Test HCL stuff
|
7
|
+
#
|
6
8
|
class WavefrontOutputBaseTest < MiniTest::Test
|
7
9
|
attr_reader :wfo
|
8
10
|
|
@@ -35,7 +37,7 @@ class WavefrontOutputBaseTest < MiniTest::Test
|
|
35
37
|
|
36
38
|
(CMDS - supported_commands).each do |cmd|
|
37
39
|
wfo = WavefrontOutput::Hcl.new(load_query_response, class: cmd)
|
38
|
-
assert_raises(LoadError) { wfo.command_class
|
40
|
+
assert_raises(LoadError) { wfo.command_class }
|
39
41
|
end
|
40
42
|
end
|
41
43
|
end
|
@@ -3,6 +3,11 @@
|
|
3
3
|
require_relative '../../spec_helper'
|
4
4
|
require_relative '../../../lib/wavefront-cli/output/ruby'
|
5
5
|
|
6
|
+
# We can't really test this without `eval`-ing the output, and
|
7
|
+
# knowing how squeamish people are about eval(), even in as
|
8
|
+
# controlled an environment as this, I'm not going to bother. We
|
9
|
+
# only p() an objecty anyway.
|
10
|
+
#
|
6
11
|
class WavefrontOutputJsonTest < MiniTest::Test
|
7
12
|
attr_reader :wfo
|
8
13
|
|
@@ -10,11 +15,6 @@ class WavefrontOutputJsonTest < MiniTest::Test
|
|
10
15
|
@wfo = WavefrontOutput::Ruby.new(load_query_response)
|
11
16
|
end
|
12
17
|
|
13
|
-
# We can't really test this without `eval`-ing the output, and
|
14
|
-
# knowing how squeamish people are about eval(), even in as
|
15
|
-
# controlled an environment as this, I'm not going to bother. We
|
16
|
-
# only p() an objecty anyway.
|
17
|
-
#
|
18
18
|
def test__run
|
19
19
|
out = wfo._run
|
20
20
|
assert_instance_of(Hash, out)
|
@@ -4,32 +4,36 @@ require_relative '../../../spec_helper'
|
|
4
4
|
require_relative '../../../../lib/wavefront-cli/output/wavefront/query'
|
5
5
|
|
6
6
|
# Test Wavefront wire-format output
|
7
|
-
|
7
|
+
#
|
8
8
|
class WavefrontOutputWavefrontTest < MiniTest::Test
|
9
9
|
attr_reader :wfq, :wfr
|
10
10
|
|
11
11
|
def setup
|
12
12
|
@wfq = WavefrontWavefrontOutput::Query.new(load_query_response, {})
|
13
|
-
@wfr = WavefrontWavefrontOutput::Query.new(
|
14
|
-
|
13
|
+
@wfr = WavefrontWavefrontOutput::Query.new(
|
14
|
+
load_raw_query_response,
|
15
|
+
raw: true,
|
16
|
+
host: 'www-blue',
|
17
|
+
'<metric>': 'solaris.network.obytes64'
|
18
|
+
)
|
15
19
|
end
|
16
20
|
|
17
21
|
def test_wavefront_format
|
18
22
|
assert_equal(
|
19
23
|
'metric.path 1.23 1533682320 source=testhost',
|
20
|
-
wfq.wavefront_format('metric.path', 1.23,
|
24
|
+
wfq.wavefront_format('metric.path', 1.23, 1_533_682_320, 'testhost')
|
21
25
|
)
|
22
26
|
|
23
27
|
assert_equal(
|
24
28
|
'metric.path 1.234567 1533682320 source=testhost tag="val"',
|
25
|
-
wfq.wavefront_format('metric.path', 1.234567,
|
26
|
-
|
29
|
+
wfq.wavefront_format('metric.path', 1.234567, 1_533_682_320,
|
30
|
+
'testhost', tag: 'val')
|
27
31
|
)
|
28
32
|
|
29
33
|
assert_equal(
|
30
34
|
'metric.path 1 1533682320 source=testhost tag1="val1" tag2="val2"',
|
31
|
-
wfq.wavefront_format('metric.path', 1,
|
32
|
-
|
35
|
+
wfq.wavefront_format('metric.path', 1, 1_533_682_320, 'testhost',
|
36
|
+
tag1: 'val1', tag2: 'val2')
|
33
37
|
)
|
34
38
|
end
|
35
39
|
|
@@ -40,7 +44,8 @@ class WavefrontOutputWavefrontTest < MiniTest::Test
|
|
40
44
|
'solaris.network.obytes64 20910.38968253968 1533679200 ' \
|
41
45
|
'source=wavefront-blue colour="blue" environment="production" ' \
|
42
46
|
'product="websites" role="wavefront-proxy" nic="net0" ' \
|
43
|
-
'platform="JPC-triton" dc="eu-ams-1"', out[0]
|
47
|
+
'platform="JPC-triton" dc="eu-ams-1"', out[0]
|
48
|
+
)
|
44
49
|
|
45
50
|
assert_equal(24, out.size)
|
46
51
|
check_wf_native_output(out)
|
@@ -3,6 +3,8 @@
|
|
3
3
|
require_relative '../../spec_helper'
|
4
4
|
require_relative '../../../lib/wavefront-cli/output/wavefront'
|
5
5
|
|
6
|
+
# Test the Wavefront instantiation of the base class
|
7
|
+
#
|
6
8
|
class WavefrontOutputBaseTest < MiniTest::Test
|
7
9
|
attr_reader :wfo
|
8
10
|
|
@@ -36,7 +38,7 @@ class WavefrontOutputBaseTest < MiniTest::Test
|
|
36
38
|
|
37
39
|
(CMDS - supported_commands).each do |cmd|
|
38
40
|
wfo = WavefrontOutput::Wavefront.new(load_query_response, class: cmd)
|
39
|
-
assert_raises(LoadError) { wfo.command_class
|
41
|
+
assert_raises(LoadError) { wfo.command_class }
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
@@ -5,7 +5,9 @@ word = 'query'
|
|
5
5
|
require_relative '../spec_helper'
|
6
6
|
require_relative "../../lib/wavefront-cli/#{word}"
|
7
7
|
require 'wavefront-sdk/mixins'
|
8
|
+
# rubocop:disable Style/MixinUsage
|
8
9
|
include Wavefront::Mixins
|
10
|
+
# rubocop:enable Style/MixinUsage
|
9
11
|
|
10
12
|
q = 'ts("dev.cli.test")'
|
11
13
|
t1 = parse_time('12:00', true)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require_relative '
|
4
|
-
require_relative '
|
5
|
-
require_relative '
|
3
|
+
require_relative '../../spec_helper'
|
4
|
+
require_relative '../../../lib/wavefront-cli/stdlib/string'
|
5
|
+
require_relative '../../../lib/wavefront-cli/commands/base'
|
6
6
|
|
7
7
|
# Test extensions to string class
|
8
8
|
#
|
data/wavefront-cli.gemspec
CHANGED
@@ -20,18 +20,18 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.files = `git ls-files`.split("\n")
|
21
21
|
gem.executables = 'wf'
|
22
22
|
gem.test_files = gem.files.grep(/^spec/)
|
23
|
-
gem.require_paths = %w
|
23
|
+
gem.require_paths = %w[lib]
|
24
24
|
|
25
|
-
gem.
|
26
|
-
gem.add_runtime_dependency 'wavefront-sdk', '~> 1.6', '>= 1.6.
|
25
|
+
gem.add_runtime_dependency 'docopt', '~> 0.6.0'
|
26
|
+
gem.add_runtime_dependency 'wavefront-sdk', '~> 1.6', '>= 1.6.1'
|
27
27
|
|
28
28
|
gem.add_development_dependency 'bundler', '~> 1.3'
|
29
|
-
gem.add_development_dependency 'rake', '~> 12.0'
|
30
|
-
gem.add_development_dependency 'yard', '~> 0.9.5'
|
31
|
-
gem.add_development_dependency 'rubocop', '~> 0.52.0'
|
32
|
-
gem.add_development_dependency 'webmock', '~> 3.0'
|
33
29
|
gem.add_development_dependency 'minitest', '~> 5.11', '>= 5.11.0'
|
30
|
+
gem.add_development_dependency 'rake', '~> 12.0'
|
31
|
+
gem.add_development_dependency 'rubocop', '~> 0.54.0'
|
34
32
|
gem.add_development_dependency 'spy', '~> 0.4.0'
|
33
|
+
gem.add_development_dependency 'webmock', '~> 3.0'
|
34
|
+
gem.add_development_dependency 'yard', '~> 0.9.5'
|
35
35
|
|
36
36
|
gem.required_ruby_version = Gem::Requirement.new('>= 2.2.0')
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wavefront-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Fisher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '1.6'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.6.
|
36
|
+
version: 1.6.1
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '1.6'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.6.
|
46
|
+
version: 1.6.1
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,95 +59,95 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.3'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '5.11'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 5.11.0
|
68
71
|
type: :development
|
69
72
|
prerelease: false
|
70
73
|
version_requirements: !ruby/object:Gem::Requirement
|
71
74
|
requirements:
|
72
75
|
- - "~>"
|
73
76
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
77
|
+
version: '5.11'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 5.11.0
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
82
|
+
name: rake
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
78
84
|
requirements:
|
79
85
|
- - "~>"
|
80
86
|
- !ruby/object:Gem::Version
|
81
|
-
version: 0
|
87
|
+
version: '12.0'
|
82
88
|
type: :development
|
83
89
|
prerelease: false
|
84
90
|
version_requirements: !ruby/object:Gem::Requirement
|
85
91
|
requirements:
|
86
92
|
- - "~>"
|
87
93
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0
|
94
|
+
version: '12.0'
|
89
95
|
- !ruby/object:Gem::Dependency
|
90
96
|
name: rubocop
|
91
97
|
requirement: !ruby/object:Gem::Requirement
|
92
98
|
requirements:
|
93
99
|
- - "~>"
|
94
100
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.
|
101
|
+
version: 0.54.0
|
96
102
|
type: :development
|
97
103
|
prerelease: false
|
98
104
|
version_requirements: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
106
|
- - "~>"
|
101
107
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.
|
108
|
+
version: 0.54.0
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
110
|
+
name: spy
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
106
112
|
requirements:
|
107
113
|
- - "~>"
|
108
114
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
115
|
+
version: 0.4.0
|
110
116
|
type: :development
|
111
117
|
prerelease: false
|
112
118
|
version_requirements: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
120
|
- - "~>"
|
115
121
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
122
|
+
version: 0.4.0
|
117
123
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
124
|
+
name: webmock
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
120
126
|
requirements:
|
121
127
|
- - "~>"
|
122
128
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: 5.11.0
|
129
|
+
version: '3.0'
|
127
130
|
type: :development
|
128
131
|
prerelease: false
|
129
132
|
version_requirements: !ruby/object:Gem::Requirement
|
130
133
|
requirements:
|
131
134
|
- - "~>"
|
132
135
|
- !ruby/object:Gem::Version
|
133
|
-
version: '
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: 5.11.0
|
136
|
+
version: '3.0'
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
138
|
+
name: yard
|
139
139
|
requirement: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: 0.
|
143
|
+
version: 0.9.5
|
144
144
|
type: :development
|
145
145
|
prerelease: false
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: 0.
|
150
|
+
version: 0.9.5
|
151
151
|
description: 'CLI for Wavefront (wavefront.com) API v2 '
|
152
152
|
email: slackboy@gmail.com
|
153
153
|
executables:
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- ".codeclimate.yml"
|
159
159
|
- ".gitignore"
|
160
160
|
- ".gitlab-ci.yml"
|
161
|
+
- ".rubocop.yml"
|
161
162
|
- ".travis.yml"
|
162
163
|
- Gemfile
|
163
164
|
- HISTORY.md
|
@@ -169,6 +170,7 @@ files:
|
|
169
170
|
- lib/wavefront-cli/base.rb
|
170
171
|
- lib/wavefront-cli/base_write.rb
|
171
172
|
- lib/wavefront-cli/cloudintegration.rb
|
173
|
+
- lib/wavefront-cli/commands/.rubocop.yml
|
172
174
|
- lib/wavefront-cli/commands/alert.rb
|
173
175
|
- lib/wavefront-cli/commands/base.rb
|
174
176
|
- lib/wavefront-cli/commands/cloudintegration.rb
|
@@ -232,6 +234,8 @@ files:
|
|
232
234
|
- lib/wavefront-cli/output/hcl/base.rb
|
233
235
|
- lib/wavefront-cli/output/hcl/dashboard.rb
|
234
236
|
- lib/wavefront-cli/output/hcl/notificant.rb
|
237
|
+
- lib/wavefront-cli/output/hcl/stdlib/array.rb
|
238
|
+
- lib/wavefront-cli/output/hcl/stdlib/string.rb
|
235
239
|
- lib/wavefront-cli/output/json.rb
|
236
240
|
- lib/wavefront-cli/output/ruby.rb
|
237
241
|
- lib/wavefront-cli/output/wavefront.rb
|
@@ -243,7 +247,7 @@ files:
|
|
243
247
|
- lib/wavefront-cli/report.rb
|
244
248
|
- lib/wavefront-cli/savedsearch.rb
|
245
249
|
- lib/wavefront-cli/source.rb
|
246
|
-
- lib/wavefront-cli/string.rb
|
250
|
+
- lib/wavefront-cli/stdlib/string.rb
|
247
251
|
- lib/wavefront-cli/user.rb
|
248
252
|
- lib/wavefront-cli/version.rb
|
249
253
|
- lib/wavefront-cli/webhook.rb
|
@@ -296,7 +300,7 @@ files:
|
|
296
300
|
- spec/wavefront-cli/resources/wavefront.conf
|
297
301
|
- spec/wavefront-cli/savedsearch_spec.rb
|
298
302
|
- spec/wavefront-cli/source_spec.rb
|
299
|
-
- spec/wavefront-cli/string_spec.rb
|
303
|
+
- spec/wavefront-cli/stdlib/string_spec.rb
|
300
304
|
- spec/wavefront-cli/user_spec.rb
|
301
305
|
- spec/wavefront-cli/webhook_spec.rb
|
302
306
|
- wavefront-cli.gemspec
|
@@ -373,6 +377,6 @@ test_files:
|
|
373
377
|
- spec/wavefront-cli/resources/wavefront.conf
|
374
378
|
- spec/wavefront-cli/savedsearch_spec.rb
|
375
379
|
- spec/wavefront-cli/source_spec.rb
|
376
|
-
- spec/wavefront-cli/string_spec.rb
|
380
|
+
- spec/wavefront-cli/stdlib/string_spec.rb
|
377
381
|
- spec/wavefront-cli/user_spec.rb
|
378
382
|
- spec/wavefront-cli/webhook_spec.rb
|