awsam 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bashrc/rc.scr +1 -1
  2. data/bin/raem +5 -0
  3. data/lib/awsam/version.rb +1 -1
  4. metadata +4 -4
@@ -313,7 +313,7 @@ function __aem_use()
313
313
  touch ${CREDENTIALS_FILE}
314
314
  chmod 0600 ${CREDENTIALS_FILE}
315
315
 
316
- echo "AWSAccessKeyId=${AWS_ACCESS_KEY_ID}" > ${CREDENTIALS_FILE}
316
+ echo "AWSAccessKeyId=${AWS_ACCESS_KEY_ID}" >| ${CREDENTIALS_FILE}
317
317
  echo "AWSSecretKey=${AWS_SECRET_ACCESS_KEY}" >> ${CREDENTIALS_FILE}
318
318
 
319
319
  return 0
data/bin/raem CHANGED
@@ -211,6 +211,11 @@ when :add_account
211
211
  secret_key = read_val("Secret key", (ENV['AMAZON_SECRET_ACCESS_KEY'] || ENV['AWS_SECRET_KEY']))
212
212
  aws_id = read_val("AWS ID", ENV['AMAZON_AWS_ID'])
213
213
 
214
+ if aws_id.match(/[0-9]+/).nil?
215
+ err "AWS ID must be the numerical account ID"
216
+ exit 1
217
+ end
218
+
214
219
  acct = Awsam::Account.new(short_name,
215
220
  { :description => desc,
216
221
  :access_key => access_key,
@@ -1,3 +1,3 @@
1
1
  module Awsam
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-29 00:00:00.000000000 Z
12
+ date: 2017-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: -1707018493688553301
122
+ hash: 1925284677082289227
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  none: false
125
125
  requirements:
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  segments:
130
130
  - 0
131
- hash: -1707018493688553301
131
+ hash: 1925284677082289227
132
132
  requirements: []
133
133
  rubyforge_project:
134
134
  rubygems_version: 1.8.23.2