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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76cfa5c33626f33c366d21913200aaa1bea3d06d
4
- data.tar.gz: 656c3a1bdc01a236c022281fe374a1492a981444
3
+ metadata.gz: 3f1c9c4d5880e62f5c86bdf43145b28c10ba5e10
4
+ data.tar.gz: b2fc5224ce18d3b68f4a2587e36c9dc1a068cb98
5
5
  SHA512:
6
- metadata.gz: dd526045227e9ded0c2c314703ca9a3c61893983c5a1bfd6ed9a1038611495e5770c8c0fb13a4dfdca44cff2b2d29a392646f13da7177cf032868cb52918d2e1
7
- data.tar.gz: 5e082b9acf5350de24fb19dc6fd6643bbb3e51e43dc3521827b5a889b2e865796fbdf8d622d803b770458e83b07267c7e32d80278f204ec7014341a450a031ee
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
@@ -1,3 +1,3 @@
1
1
  module Pele
2
- VERSION = '0.1.7-pre'.freeze
2
+ VERSION = '0.1.8-pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pele
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7.pre.pre
4
+ version: 0.1.8.pre.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suyesh Bhandari