growthforecast-client 0.82.1 → 0.82.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/growthforecast/cli.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bfa0e7cb7a91a12649f2b549d6bd5c1e8c0faa5
|
4
|
+
data.tar.gz: ca85e924dd369e2c51d1fca90da58eef4ea433f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 079df0f839115329544636b9d34b5d8c99f7987a5a557d52ab47168f55839fd4e430b02bea4d57e2ef2c9953b676b605e15d5f42f53633e12b2209949d91b89a
|
7
|
+
data.tar.gz: 3207f1fbfd37a30a2f43a35b66edec8b3f3a94dd31d1909af76c1ddd96e338a187c5e33a700cd94c08e02af9c1d233a280a0895741adf2d482cb6320dbd91c1e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.82.
|
1
|
+
0.82.2
|
data/lib/growthforecast/cli.rb
CHANGED
@@ -78,6 +78,18 @@ class GrowthForecast::CLI < Thor
|
|
78
78
|
setup_complex(from_graphs, to_complex, graphs)
|
79
79
|
end
|
80
80
|
|
81
|
+
desc 'vrule <json> <api_url>', 'create a vertical line'
|
82
|
+
long_desc <<-LONGDESC
|
83
|
+
Create a vertical line
|
84
|
+
|
85
|
+
ex) growthforecast-client vrule '{"dashes":"2,10"}' http://{hostname}:{port}/vrule/api[/{service_name}[/{section_name}[/{graph_name}]]]
|
86
|
+
LONGDESC
|
87
|
+
def vrule(json, url)
|
88
|
+
base_uri, service_name, section_name, graph_name = split_url(url)
|
89
|
+
@client = client(base_uri)
|
90
|
+
puts @client.post_vrule(service_name, section_name, graph_name, JSON.parse(json))
|
91
|
+
end
|
92
|
+
|
81
93
|
no_tasks do
|
82
94
|
def delete_graphs(graphs, graph_names = nil, section_names = nil)
|
83
95
|
graphs.each do |graph|
|