cloudcover 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cloudcover +2 -2
- data/lib/cloudcover/config.rb +16 -0
- data/lib/cloudcover/version.rb +1 -1
- 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: 499796e15bc4ad9b01806a6a9d464017d7a77c2c
|
4
|
+
data.tar.gz: f463ec941b0d38eeb8ce344deff42ad0a6a1df53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e710fa7339ffcdce38bc0f5897aebdc0f4bc3355ef35f85b1bca02bfead481725dbc27cda1122be85477434b00f4a713e4960403b76b6ffcd3f65d439a694e8b
|
7
|
+
data.tar.gz: b99bc2e98b9305380b65451096d712accdfcab16f5aa574cffd66d27e29c15085a831fb225f51bf346847d2b920220639a7a354957b923ea0eca53dbb542926d
|
data/bin/cloudcover
CHANGED
@@ -14,8 +14,8 @@ arguments :strict
|
|
14
14
|
switch [:v,:verbose], :desc => 'Verbose output', :negatable => false
|
15
15
|
switch [:d,:debug], :desc => 'Debug output (Includes verbose)', :negatable => false
|
16
16
|
switch [:color], :desc => 'Colorize output', :default_value => true
|
17
|
-
flag [:config], :desc => 'Cloudcover config file path', :default_value =>
|
18
|
-
flag ['session-path'], :desc => 'Cloudcover cookie file path', :default_value =>
|
17
|
+
flag [:config], :desc => 'Cloudcover config file path', :default_value => Cloudcover::DefaultPaths.config
|
18
|
+
flag ['session-path'], :desc => 'Cloudcover cookie file path', :default_value => Cloudcover::DefaultPaths.cookie
|
19
19
|
|
20
20
|
desc 'Simply verify that a set of credentials are valid to login to Okta. Returns 0 on success and non-zero on failure.'
|
21
21
|
arg_name '[credential file path]'
|
data/lib/cloudcover/config.rb
CHANGED
@@ -9,6 +9,22 @@ module Cloudcover
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
+
class DefaultPaths
|
13
|
+
class << self
|
14
|
+
def config
|
15
|
+
File.join(self.home,'.cloudcover')
|
16
|
+
end
|
17
|
+
|
18
|
+
def cookie
|
19
|
+
File.join(self.home,'.oktasession')
|
20
|
+
end
|
21
|
+
|
22
|
+
def home
|
23
|
+
ENV['HOME'] ? ENV['HOME'] : "."
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
12
28
|
class Config
|
13
29
|
|
14
30
|
CONFIG_DEFAULTS = {}
|
data/lib/cloudcover/version.rb
CHANGED