ec2_amitools 1.0.2 → 1.0.6

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: 61e05c7c7f9a080bb9b10d5a15e481da80ae6aa0
4
- data.tar.gz: d4285e6efa71a9cd56e7f7952594c249ae178384
3
+ metadata.gz: bdbbdd2100494c900e371771e6bd226f1435686a
4
+ data.tar.gz: 49211d86d6e301b0e9dc7f795532cb7250269ff7
5
5
  SHA512:
6
- metadata.gz: 53819c3f2ab95eb3d778f8216b9411e48da84384947859058e77390af355ff8fca42ea8424d97cf4f68b07d981e4356333ce7084404a743b9d878374fb862c80
7
- data.tar.gz: 6ebc9c3a6fa31f1654aae27a5321c2031451058585a0799303b5beba885d840206c2d1a30416cee6f6156d6b8616ef4223aea2e10ad714f746034eefca3c97fd
6
+ metadata.gz: d42b3b0df7fc5ce7ad45142ab600af33e6d2f1971596c8a64972c7e6cc1fea573488b719c6a1a92f8b56e740e04142e3b6902ef53d3b15b29af89d485dd170e2
7
+ data.tar.gz: 7238a1fd4ca54eb26398e2a7e939489b4685e561e2e9effac6008cf21104e0900bc3e211f789c185059e8b8719048bdca533c808a821ecb2941e16e70c4bc170
@@ -16,11 +16,13 @@ module EC2
16
16
  module Base
17
17
  module Constants
18
18
  module Bundling
19
- EC2_HOME = ENV["EC2_AMITOOL_HOME"] || ENV["EC2_HOME"]
20
- EC2_X509_CERT = File.join(EC2_HOME.to_s, '/etc/ec2/amitools/cert-ec2.pem')
21
- EC2_X509_GOV_CERT = File.join(EC2_HOME.to_s, '/etc/ec2/amitools/cert-ec2-gov.pem')
22
- EC2_X509_CN_NORTH_1_CERT = File.join(EC2_HOME.to_s, '/etc/ec2/amitools/cert-ec2-cn-north-1.pem')
23
- EC2_MAPPING_FILE = File.join(EC2_HOME.to_s, '/etc/ec2/amitools/mappings.csv')
19
+ BASE_DIR = __FILE__.to_s.gsub(/\/lib\/.*/, '')
20
+
21
+ EC2_X509_CERT = File.join(BASE_DIR, '/etc/ec2/amitools/cert-ec2.pem')
22
+ EC2_X509_GOV_CERT = File.join(BASE_DIR, '/etc/ec2/amitools/cert-ec2-gov.pem')
23
+ EC2_X509_CN_NORTH_1_CERT = File.join(BASE_DIR, '/etc/ec2/amitools/cert-ec2-cn-north-1.pem')
24
+ EC2_MAPPING_FILE = File.join(BASE_DIR, '/etc/ec2/amitools/mappings.csv')
25
+
24
26
  EC2_MAPPING_URL = 'https://ec2-downloads.s3.amazonaws.com/mappings.csv'
25
27
  DESTINATION = '/tmp'
26
28
  end
@@ -667,7 +667,7 @@ module EC2
667
667
  raise FatalError.new("image already mounted") if mounted?(IMG_MNT)
668
668
  dirs = ['mnt', 'proc', 'sys', 'dev']
669
669
  if self.is_disk_image?
670
- execute( 'mount -t %s %s %s' % [@fstype, @target, IMG_MNT] )
670
+ execute( 'mount -o nouuid -t %s %s %s' % [@fstype, @target, IMG_MNT] )
671
671
  dirs.each{|dir| FileUtils.mkdir_p( '%s/%s' % [IMG_MNT, dir])}
672
672
  make_special_devices
673
673
  execute( 'mount -o bind /proc %s/proc' % IMG_MNT )
data/lib/ec2/version.rb CHANGED
@@ -3,6 +3,6 @@ require 'ec2/amitools/version'
3
3
  module EC2
4
4
  module AMITools
5
5
  VERSION_TOOLS = "#{EC2Version::PKG_VERSION}.#{EC2Version::PKG_RELEASE}".freeze
6
- VERSION = "1.0.2"
6
+ VERSION = "1.0.6"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2_amitools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Bobyrev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-27 00:00:00.000000000 Z
11
+ date: 2017-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: ec2_amitools provided by Amazon packed into a gem
41
+ description: ec2-ami-tools-1.5.7 by Amazon packed into a gem
42
42
  email:
43
43
  - alexey.bobyrev@gmail.com
44
44
  executables:
@@ -80,7 +80,6 @@ files:
80
80
  - lib/ec2/amitools/bundlevolparameters.rb
81
81
  - lib/ec2/amitools/crypto.rb
82
82
  - lib/ec2/amitools/decryptmanifest.rb
83
- - lib/ec2/amitools/defaults.rb
84
83
  - lib/ec2/amitools/deletebundle.rb
85
84
  - lib/ec2/amitools/deletebundleparameters.rb
86
85
  - lib/ec2/amitools/downloadbundle.rb
@@ -180,5 +179,5 @@ rubyforge_project:
180
179
  rubygems_version: 2.5.2
181
180
  signing_key:
182
181
  specification_version: 4
183
- summary: 'AWS: EC2 AMI Tools'
182
+ summary: ec2-ami-tools-1.5.7
184
183
  test_files: []
@@ -1,12 +0,0 @@
1
- # Copyright 2008-2014 Amazon.com, Inc. or its affiliates. All Rights
2
- # Reserved. Licensed under the Amazon Software License (the
3
- # "License"). You may not use this file except in compliance with the
4
- # License. A copy of the License is located at
5
- # http://aws.amazon.com/asl or in the "license" file accompanying this
6
- # file. This file is distributed on an "AS IS" BASIS, WITHOUT
7
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
8
- # the License for the specific language governing permissions and
9
- # limitations under the License.
10
-
11
- EC2_HOME = ENV['EC2_AMITOOL_HOME'] || ENV['EC2_HOME']
12
- EC2_X509_CERT = '#{EC2_HOME}/etc/ec2/amitools/cert-ec2.pem'