idcfcloud 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/idcf/cli/command/morio.rb +12 -12
- data/lib/idcf/cli/controller/base.rb +8 -1
- data/lib/idcf/cli/index.rb +2 -0
- data/lib/idcf/cli/lib/api.rb +1 -0
- data/lib/idcf/cli/lib/configure.rb +2 -2
- data/lib/idcf/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09cbeede1098617cb40e566cd20f240d6b2d0404
|
4
|
+
data.tar.gz: d7a1709c7246eb5a56d83cb2b310830d40f4383a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9f9c7a579f7772f72b190fce4e712e1b63dcb2144952b5e42d69faa31a7572e97aad5009b7ff933b9dd14ddc49f04f429dab5ba509c5bfc47a110cda1fcc8c1
|
7
|
+
data.tar.gz: 8374e4292620361ca1e6e2eb798316dcaeb852cf810549062493ab2643049c4d03e995b9534aff6dbce7d4af7c5df63d264527b8aa3e6c0a3e613c2d640a102e
|
data/.rubocop.yml
CHANGED
@@ -12,18 +12,18 @@ module Idcf
|
|
12
12
|
# morio command
|
13
13
|
class Morio
|
14
14
|
MORIO_TXT = <<-'EOS'.freeze
|
15
|
-
-+sso+-
|
16
|
-
.... -ssssssso`
|
17
|
-
`-/ossssss+/. `ssssssso`
|
18
|
-
`/ssssssssssssso- /sssss+
|
19
|
-
.-:ossssssssssssssss` sssssss`
|
20
|
-
`/sssssssssssssssssssss.+sssssss.
|
21
|
-
`ossssssssssssssssssssss`osssssss`
|
22
|
-
/sssssssssssssssssssssss-ossssss+
|
23
|
-
:sssssssssssssssssssssssssssssso`
|
24
|
-
/ssssssssssssssssssssssssssss+`
|
25
|
-
./osssssssssssssssssssssss+.
|
26
|
-
`-:+oosssssssssssso+:.
|
15
|
+
-+sso+-
|
16
|
+
.... -ssssssso`
|
17
|
+
`-/ossssss+/. `ssssssso`
|
18
|
+
`/ssssssssssssso- /sssss+
|
19
|
+
.-:ossssssssssssssss` sssssss`
|
20
|
+
`/sssssssssssssssssssss.+sssssss.
|
21
|
+
`ossssssssssssssssssssss`osssssss`
|
22
|
+
/sssssssssssssssssssssss-ossssss+
|
23
|
+
:sssssssssssssssssssssssssssssso`
|
24
|
+
/ssssssssssssssssssssssssssss+`
|
25
|
+
./osssssssssssssssssssssss+.
|
26
|
+
`-:+oosssssssssssso+:.
|
27
27
|
``````````
|
28
28
|
EOS
|
29
29
|
ATTRIBUTES_OFF = "\e[0m".freeze
|
@@ -60,7 +60,10 @@ module Idcf
|
|
60
60
|
def register_schema_method(o)
|
61
61
|
path = make_schema_path(o)
|
62
62
|
|
63
|
-
|
63
|
+
unless File.exist?(path)
|
64
|
+
raise Idcf::Cli::Error::CliError, 'Run the command `update`' if self_call?
|
65
|
+
return nil
|
66
|
+
end
|
64
67
|
|
65
68
|
analyst = Idcf::JsonHyperSchema::Analyst.new
|
66
69
|
@links = analyst.load(path).links
|
@@ -69,6 +72,10 @@ module Idcf
|
|
69
72
|
end
|
70
73
|
end
|
71
74
|
|
75
|
+
def self_call?
|
76
|
+
ARGV.include?(name.underscore.split('/').pop)
|
77
|
+
end
|
78
|
+
|
72
79
|
# service name
|
73
80
|
#
|
74
81
|
# @return String
|
data/lib/idcf/cli/index.rb
CHANGED
data/lib/idcf/cli/lib/api.rb
CHANGED
@@ -24,7 +24,7 @@ module Idcf
|
|
24
24
|
def get_user_conf(name, profile = 'default')
|
25
25
|
return config.find(name, profile) if config
|
26
26
|
@config = load_user_conf
|
27
|
-
msg
|
27
|
+
msg = 'Run the command `configure`'
|
28
28
|
raise Idcf::Cli::Error::CliError, msg unless config
|
29
29
|
|
30
30
|
config.find(name, profile)
|
@@ -42,7 +42,7 @@ module Idcf
|
|
42
42
|
return get_user_conf(path, profile)
|
43
43
|
rescue
|
44
44
|
return code_config.find(path) if code_config
|
45
|
-
f_path
|
45
|
+
f_path = Idcf::Cli::Conf::Const::CODE_CONF_PATH
|
46
46
|
@code_config = Idcf::Cli::Lib::Util::YmlConf.new(f_path)
|
47
47
|
code_config.find(path)
|
48
48
|
end
|
data/lib/idcf/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idcfcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IDC Frontier Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|