oc 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/oc +1 -1
- data/lib/oc/version.rb +1 -1
- data/lib/system/config.rb +1 -1
- data/lib/system/run/commands/info.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: 9badf9012471184ed6f8f3b77ef69d96d4ed3504
|
4
|
+
data.tar.gz: 734a922a00da097618706707eebdd7dd9c4c9912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3e12fd37797745a52616b17ac5b6ef5411539e1b367505badf59af8d8c302cddddff57c7cb6d9e1c390ac43eaa44efb2d51ed482678cf7e2b792c69fb77ae75
|
7
|
+
data.tar.gz: 5a92543aad17b2ed29376ff76e2fd3aa09c967f8e422f0afad7e23d22df33a5374ff415890f739a3fb40ee10c6ced6b6b7b86df6be41124cd89c567092072aa7
|
data/bin/oc
CHANGED
@@ -10,7 +10,7 @@ bin_file = Pathname.new(__FILE__).realpath
|
|
10
10
|
|
11
11
|
$:.unshift File.expand_path("../../lib", bin_file)
|
12
12
|
|
13
|
-
config = Netrc.read("#{
|
13
|
+
config = Netrc.read("#{(ENV["HOME"] || "./")}/digitalocean.netrc")
|
14
14
|
|
15
15
|
if config["api.digitalocean.com"].nil?
|
16
16
|
client_id = [(print 'Digital Ocean Client ID: '), STDIN.gets.rstrip][1]
|
data/lib/oc/version.rb
CHANGED
data/lib/system/config.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Oc
|
2
2
|
class Config
|
3
3
|
def self.get(key)
|
4
|
-
config = Netrc.read("#{
|
4
|
+
config = Netrc.read("#{(ENV["HOME"] || "./")}/digitalocean.netrc")
|
5
5
|
config = config["api.digitalocean.com"]
|
6
6
|
options = {
|
7
7
|
:client_id => config[0],
|
@@ -9,7 +9,7 @@ module Oc::Run
|
|
9
9
|
|
10
10
|
description "Change your API information"
|
11
11
|
def change(*args)
|
12
|
-
config = Netrc.read("#{
|
12
|
+
config = Netrc.read("#{(ENV["HOME"] || "./")}/digitalocean.netrc")
|
13
13
|
client_id = [(print 'Digital Ocean Client ID: '), STDIN.gets.rstrip][1]
|
14
14
|
api_key = [(print 'Digital Ocean API Key: '), STDIN.gets.rstrip][1]
|
15
15
|
if client_id.empty? and api_key.empty?
|