pele 0.1.4.pre.pre → 0.1.5.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/utils.rb +4 -4
- 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: cf72013c2db69776a92a3a68b559f26f5c202ee9
|
4
|
+
data.tar.gz: e98a348cc805efd777519a67dd744fae5f09b9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01af68a8ff6ca95a1d017bf852456ad16e98c99e60aee824659cc322acf423873109110f73e5a4d2472f50438d28e96b011f0cd24f6d9ecbc53d30b198567606
|
7
|
+
data.tar.gz: 0a3d81355a6335cbef263f29fa668643b10b28b5be5318a0b6ba805a15b7257f1b917a500495dab3459b10f577ad4486ac4fbfaaf23b9d216f51fcfe1e0051b3
|
data/lib/pele/utils.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Pele
|
2
2
|
module Utils
|
3
|
-
def get_os_path
|
3
|
+
def self.get_os_path
|
4
4
|
if OS.windows?
|
5
5
|
'%USERPROFILE%.awscredentials'
|
6
6
|
elsif OS.mac? || OS.linux?
|
@@ -12,14 +12,14 @@ module Pele
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
def check_existing_file(os)
|
15
|
+
def self.check_existing_file(os)
|
16
16
|
if File.exist? File.expand_path os
|
17
17
|
overwrite = prompt.select("This is going to overwrite your existing #{'~/.aws/credentials'.colorize(:green)}. ok?", %w[OK EXIT])
|
18
18
|
abort unless overwrite == 'OK'
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def post_identification
|
22
|
+
def self.post_identification
|
23
23
|
puts "\e[H\e[2J"
|
24
24
|
say('Your OS identified: ', :yellow)
|
25
25
|
puts ''
|
@@ -29,7 +29,7 @@ module Pele
|
|
29
29
|
puts ''
|
30
30
|
end
|
31
31
|
|
32
|
-
def create_key_pair(os, key_pair_name)
|
32
|
+
def self.create_key_pair(os, key_pair_name)
|
33
33
|
current_dirname = File.basename(Dir.getwd)
|
34
34
|
ec2 = Aws::EC2::Client.new
|
35
35
|
Dir.chdir File.dirname(os)
|
data/lib/pele/version.rb
CHANGED