pele 0.1.1.pre.pre → 0.1.2.pre.pre

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: 8dee3c7fb02e233fcb5246850b6a767b358f2a42
4
- data.tar.gz: d1930aaf37532cdc47aa426d752e0f57d33ccd37
3
+ metadata.gz: cfef9bbbf9bd74a9ae924d894d68abf670937b8e
4
+ data.tar.gz: 6a46cdff04c47886593a853d6615bcb9a7ee865f
5
5
  SHA512:
6
- metadata.gz: acb8664349387e61703180eab9800b5396ddaa4df56076963b2a36a95073f42e28ac85a3bf85c3615a27897d8f9ecf4a6357226405f7bceabd2e91b6d05a414d
7
- data.tar.gz: dafad77fadb2c04231bf76704f6f7b2a766679f294556844233a90a6372426b25a74bd609b4e9093a61b65de5c936d604efb1249314d80e5d879483e0124cb9c
6
+ metadata.gz: a09855dc59c89de62fb5498cb09185d79efc9467fbb259d8635a9fcbabd3449b44539b609fe4f19587f0997d74ec906329945e6fcdaadb2ea4e155124de27101
7
+ data.tar.gz: 45c3bb11794e3ea332cc2d8c7a07a7519e5cc02bc556c442e26e21a4e2ec85432278af4402fb44fe410077cf340c05cf15960a22a0e6352121db4e417df92adc
data/lib/pele/cli.rb CHANGED
@@ -2,7 +2,7 @@ module Pele
2
2
  class Cli < Thor
3
3
  include Thor::Actions
4
4
 
5
- desc 'attack init', 'Initializes the AWS credentials on your Machine'
5
+ desc 'pele init', 'Initializes the AWS credentials on your Machine'
6
6
  def init
7
7
  os = OS.windows? || OS.mac? || OS.linux?
8
8
  unless os
@@ -10,17 +10,22 @@ module Pele
10
10
  say("Looks like we could not identify your OS.\n\nPlease setup your ENV values as follows:\n\nAWS_ACCESS_KEY_ID=[YOUR ACCES KEY ID]\nAWS_SECRET_ACCESS_KEY=[YOUR SECRET KEY ID]", :red)
11
11
  abort
12
12
  end
13
+ prompt = TTY::Prompt.new active_color: :green
14
+ if File.exist? File.expand_path '~/.aws/credentials'
15
+ overwrite = prompt.select("This is going to overwrite your existing #{'~/.aws/credentials'.colorize(:green)}. ok?", %w[OK EXIT])
16
+ abort unless overwrite == 'OK'
17
+ puts ' '
18
+ end
13
19
  puts "\e[H\e[2J"
14
20
  say('Your OS identified: ', :yellow)
15
21
  puts ''
16
22
  puts OS.report
17
23
  puts ''
18
- prompt = TTY::Prompt.new active_color: :green
19
24
  say('Provide your aws credentials below', :yellow)
20
25
  puts ''
21
26
  _aws_access_key_id = prompt.ask('AWS Access Key ID: '.colorize(:blue), required: true)
22
- _aws_secret_access_key = prompt.ask('AWS Secret Access Key: '.colorize(:blue),required: true)
23
- _aws_region = prompt.select('Choose a AWS region?'.colorize(:blue), Pele::Regions::ALL)
27
+ _aws_secret_access_key = prompt.ask('AWS Secret Access Key: '.colorize(:blue), required: true)
28
+ _aws_region = prompt.select('Choose a AWS region: '.colorize(:blue), Pele::Regions::ALL)
24
29
  if _aws_access_key_id.empty? || _aws_secret_access_key.empty? || _aws_region.empty?
25
30
  say('You need to provide all three credentials. Please try again', :red)
26
31
  abort
@@ -35,6 +40,5 @@ module Pele
35
40
  end
36
41
  end
37
42
  end
38
-
39
43
  end
40
44
  end
data/lib/pele/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pele
2
- VERSION = "0.1.1-pre"
2
+ VERSION = "0.1.2-pre"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pele
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre.pre
4
+ version: 0.1.2.pre.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suyesh Bhandari
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler