pele 0.1.7.pre.pre → 0.1.8.pre.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pele/cli.rb +1 -1
- data/lib/pele/utils.rb +1 -2
- data/lib/pele/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: 3f1c9c4d5880e62f5c86bdf43145b28c10ba5e10
|
4
|
+
data.tar.gz: b2fc5224ce18d3b68f4a2587e36c9dc1a068cb98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44bf1c3ced69e5cd9602df7583c328e59e142b2a7634af56fcf55d2f5b6e7e3143180ed71f0737bca2eafacc3013de024ef10b7ad24712d8e51f93828ae0afd8
|
7
|
+
data.tar.gz: a8292ae521a1ef9ff8208ae9241c0ee42af53db5a94674bae59985457fec875458ae6c71ba9580c8f7a098cff2aae69816ac994e392d7919bdcd8c775dce9f48
|
data/lib/pele/cli.rb
CHANGED
@@ -7,7 +7,7 @@ module Pele
|
|
7
7
|
def init
|
8
8
|
os = Pele::Utils.get_os_path
|
9
9
|
prompt = TTY::Prompt.new active_color: :green
|
10
|
-
Pele::Utils.check_existing_file(os)
|
10
|
+
Pele::Utils.check_existing_file(os, prompt)
|
11
11
|
Pele.utils.post_identification
|
12
12
|
aws_access_key_id = prompt.ask('AWS Access Key ID: '.colorize(:blue), required: true)
|
13
13
|
aws_secret_access_key = prompt.ask('AWS Secret Access Key: '.colorize(:blue), required: true)
|
data/lib/pele/utils.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'tty-prompt'
|
2
1
|
module Pele
|
3
2
|
module Utils
|
4
3
|
def self.get_os_path
|
@@ -13,7 +12,7 @@ module Pele
|
|
13
12
|
end
|
14
13
|
end
|
15
14
|
|
16
|
-
def self.check_existing_file(os)
|
15
|
+
def self.check_existing_file(os, prompt)
|
17
16
|
if File.exist? File.expand_path os
|
18
17
|
overwrite = prompt.select("This is going to overwrite your existing #{'~/.aws/credentials'.colorize(:green)}. ok?", %w[OK EXIT])
|
19
18
|
abort unless overwrite == 'OK'
|
data/lib/pele/version.rb
CHANGED