Skip to content

Commit e4e5ace

Browse files
committed
Initial project scaffold, generated from jamie new_plugin ec2.
0 parents  commit e4e5ace

File tree

8 files changed

+164
-0
lines changed

8 files changed

+164
-0
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in jamie-ec2.gemspec
4+
gemspec
5+
6+
group :test do
7+
gem 'rake'
8+
end

LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Author:: Fletcher Nichol (<[email protected]>)
2+
3+
Copyright (C) 2012, Fletcher Nichol
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Jamie::Ec2
2+
3+
TODO: Write a gem description
4+
5+
## Installation
6+
7+
Add this line to your application's Gemfile:
8+
9+
gem 'jamie-ec2'
10+
11+
And then execute:
12+
13+
$ bundle
14+
15+
Or install it yourself as:
16+
17+
$ gem install jamie-ec2
18+
19+
## Usage
20+
21+
TODO: Write usage instructions here
22+
23+
## Contributing
24+
25+
1. Fork it
26+
2. Create your feature branch (`git checkout -b my-new-feature`)
27+
3. Commit your changes (`git commit -am 'Add some feature'`)
28+
4. Push to the branch (`git push origin my-new-feature`)
29+
5. Create new Pull Request

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "bundler/gem_tasks"
2+
require 'cane/rake_task'
3+
require 'tailor/rake_task'
4+
5+
desc "Run cane to check quality metrics"
6+
Cane::RakeTask.new
7+
8+
Tailor::RakeTask.new
9+
10+
task :default => [ :cane, :tailor ]

jamie-ec2.gemspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- encoding: utf-8 -*-
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'jamie/driver/ec2_version.rb'
5+
6+
Gem::Specification.new do |gem|
7+
gem.name = "jamie-ec2"
8+
gem.version = Jamie::Driver::EC2_VERSION
9+
gem.authors = ["Fletcher Nichol"]
10+
gem.email = ["[email protected]"]
11+
gem.description = "Jamie::Driver::Ec2 - A Jamie Driver for Ec2"
12+
gem.summary = gem.description
13+
gem.homepage = "https://github.com/jamie-ci/jamie-ec2/"
14+
15+
gem.files = `git ls-files`.split($/)
16+
gem.executables = []
17+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18+
gem.require_paths = ["lib"]
19+
20+
gem.add_dependency 'jamie'
21+
22+
gem.add_development_dependency 'cane'
23+
gem.add_development_dependency 'tailor'
24+
end

lib/jamie/driver/ec2.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- encoding: utf-8 -*-
2+
#
3+
# Author:: Fletcher Nichol (<[email protected]>)
4+
#
5+
# Copyright (C) 2012, Fletcher Nichol
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
require 'jamie'
20+
21+
module Jamie
22+
23+
module Driver
24+
25+
# Ec2 driver for Jamie.
26+
class Ec2 < Jamie::Driver::SSHBase
27+
28+
def create(instance, state)
29+
end
30+
31+
def destroy(instance, state)
32+
end
33+
end
34+
end
35+
end

lib/jamie/driver/ec2_version.rb

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- encoding: utf-8 -*-
2+
#
3+
# Author:: Fletcher Nichol (<[email protected]>)
4+
#
5+
# Copyright (C) 2012, Fletcher Nichol
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
19+
module Jamie
20+
21+
module Driver
22+
23+
# Version string for Ec2 Jamie driver
24+
EC2_VERSION = "0.1.0"
25+
end
26+
end

0 commit comments

Comments
 (0)