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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6d58874345561dcb51a9647e0bfe1044a608cc9
4
- data.tar.gz: 5daf2ddf93dd72c1ba8e9ad0462f445b1b00d062
3
+ metadata.gz: 499796e15bc4ad9b01806a6a9d464017d7a77c2c
4
+ data.tar.gz: f463ec941b0d38eeb8ce344deff42ad0a6a1df53
5
5
  SHA512:
6
- metadata.gz: d9bef2e0baeec7441b387f3b3f645a73e047f2b446caad655da4c51a29e8a27f9a40523117044425bc58a9fd3afcd3ca067f342772b6cea5c98b9ae26dbc84c6
7
- data.tar.gz: 781147cc958b6b74910ef376108cd695670b7e539fd87d6102e1c0d323513f1b1b99764802716b19aed0a76196d35a078325e3ee8ee912f6bf83b39963990766
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 => File.join(ENV['HOME'],'.cloudcover')
18
- flag ['session-path'], :desc => 'Cloudcover cookie file path', :default_value => File.join(ENV['HOME'],'.oktasession')
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]'
@@ -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 = {}
@@ -1,3 +1,3 @@
1
1
  module Cloudcover
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudcover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Krieger