ami 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -5,7 +5,7 @@ A gem for automating the creation of EC2 AMIs
5
5
  ## Installation
6
6
 
7
7
  ```
8
- gem install kiln
8
+ gem install ami
9
9
  ```
10
10
 
11
11
  or add to your Gemfile
@@ -13,26 +13,26 @@ or add to your Gemfile
13
13
  ```ruby
14
14
  source "https://rubygems.org"
15
15
 
16
- gem "kiln", "~> 1.0.0"
16
+ gem "ami", "~> 1.0.0"
17
17
  ```
18
18
 
19
19
  ## Usage
20
20
 
21
- `kiln-create-ami <AMI class name>`
21
+ `ami-create <AMI class name>`
22
22
 
23
23
  Creates an AMI using the specified AMI template e.g.
24
24
 
25
- `kiln-create-ami PreciseBasic`
25
+ `ami-create PreciseBasic`
26
26
 
27
- AMIs are expected to be found in ./kiln/
27
+ AMIs are expected to be found in ./ami/
28
28
 
29
- For an exmaple of what an AMI template looks like see: [PreciseBasic template](kiln/precise-basic.rb)
29
+ For an exmaple of what an AMI template looks like see: [PreciseBasic template](ami/precise-basic.rb)
30
30
 
31
31
  You will also require a config file to provide all the credentials and other
32
32
  information necessary to create your AMI, this can be located in either
33
- `~/.kiln/config.json` or `./kiln/config.json`
33
+ `~/.ami/config.json` or `./ami/config.json`
34
34
 
35
- For an example of the values see: [example config.json](kiln/config.json)
35
+ For an example of the values see: [example config.json](ami/config.json)
36
36
 
37
37
  ## LICENSE
38
38
 
@@ -13,7 +13,7 @@ class PreciseBasic < AMI::Definition
13
13
  server.user_name = 'ubuntu'
14
14
  end
15
15
 
16
- def configure(ssh)
16
+ def configure(ssh, config)
17
17
  AMI::Installer::RubyUnderRbenv.install('1.9.3-p429', ssh)
18
18
  end
19
19
 
@@ -28,7 +28,7 @@ module AMI
28
28
 
29
29
  begin
30
30
  ssh = AMI::SSH.create_connection(server, server_template.user_name)
31
- ami.configure(ssh)
31
+ ami.configure(ssh, config)
32
32
  ami.create_ami(ssh, config)
33
33
  puts 'done'
34
34
  rescue
@@ -6,7 +6,7 @@ module AMI
6
6
  end
7
7
 
8
8
  # Configures the AMI as required
9
- def configure(ssh)
9
+ def configure(ssh, config)
10
10
  end
11
11
 
12
12
  # Creates the AMI via the ssh connection on the provided instance
@@ -1,3 +1,3 @@
1
1
  module AMI
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ami
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
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: 2013-06-23 00:00:00.000000000 Z
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gofer