cloudstack_rightimage_uploader 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rakeTasks +7 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +60 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +66 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/bin/cloudstack_rightimage_uploader +81 -0
- data/cloudstack_rightimage_uploader.gemspec +70 -0
- data/lib/cloudstack_rightimage_uploader.rb +0 -0
- data/test/helper.rb +18 -0
- data/test/test_cloudstack_rightimage_uploader.rb +7 -0
- metadata +181 -0
data/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build gem into pkg/" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated file" fullCmd="clobber" taksId="clobber" /><RakeTask description="Remove rcov products for rcov" fullCmd="clobber_rcov" taksId="clobber_rcov" /><RakeTask description="Remove RDoc HTML files" fullCmd="clobber_rdoc" taksId="clobber_rdoc" /><RakeTask description="Start IRB with all runtime dependencies loaded" fullCmd="console[script]" taksId="console[script]" /><RakeGroup description="" fullCmd="" taksId="gemcutter"><RakeTask description="Release gem to Gemcutter" fullCmd="gemcutter:release" taksId="release" /></RakeGroup><RakeTask description="Generate and validate gemspec" fullCmd="gemspec" taksId="gemspec" /><RakeGroup description="" fullCmd="" taksId="gemspec"><RakeTask description="Display the gemspec for debugging purposes, as jeweler knows it (not from the filesystem)" fullCmd="gemspec:debug" taksId="debug" /><RakeTask description="Regenerate the gemspec on the filesystem" fullCmd="gemspec:generate" taksId="generate" /><RakeTask description="Regenerate and validate gemspec, and then commits and pushes to git" fullCmd="gemspec:release" taksId="release" /><RakeTask description="Validates the gemspec on the filesystem" fullCmd="gemspec:validate" taksId="validate" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="git"><RakeTask description="Tag and push release to git" fullCmd="git:release" taksId="release" /></RakeGroup><RakeTask description="Build and install gem using `gem install`" fullCmd="install" taksId="install" /><RakeTask description="Analyze code coverage with tests" fullCmd="rcov" taksId="rcov" /><RakeTask description="Build RDoc HTML files" fullCmd="rdoc" taksId="rdoc" /><RakeTask description="Release gem" fullCmd="release" taksId="release" /><RakeTask description="Rebuild RDoc HTML files" fullCmd="rerdoc" taksId="rerdoc" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="Displays the current version" fullCmd="version" taksId="version" /><RakeGroup description="" fullCmd="" taksId="version"><RakeGroup description="" fullCmd="" taksId="bump"><RakeTask description="Bump the major version by 1" fullCmd="version:bump:major" taksId="major" /><RakeTask description="Bump the a minor version by 1" fullCmd="version:bump:minor" taksId="minor" /><RakeTask description="Bump the patch version by 1" fullCmd="version:bump:patch" taksId="patch" /></RakeGroup><RakeTask description="Writes out an explicit version" fullCmd="version:write" taksId="write" /></RakeGroup><RakeTask description="" fullCmd="console" taksId="console" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="gemspec_required" taksId="gemspec_required" /><RakeTask description="" fullCmd="rdoc/index.html" taksId="rdoc/index.html" /><RakeTask description="" fullCmd="version_required" taksId="version_required" /></RakeGroup></Settings>
|
data/Gemfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem "fog", :git => 'git://github.com/rgeyer/fog',
|
7
|
+
:branch => 'cloudstack_template_requests'
|
8
|
+
|
9
|
+
gem "trollop", "~> 1.16.2"
|
10
|
+
|
11
|
+
# Add dependencies to develop your gem here.
|
12
|
+
# Include everything needed to run rake, tests, features, etc.
|
13
|
+
group :development do
|
14
|
+
gem "shoulda", ">= 0"
|
15
|
+
gem "rdoc", "~> 3.12"
|
16
|
+
gem "bundler", "~> 1.0.0"
|
17
|
+
gem "jeweler", "~> 1.8.3"
|
18
|
+
gem "rcov", ">= 0"
|
19
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/rgeyer/fog
|
3
|
+
revision: 61aadc7508cd6a7d704f4600430d41fc6f00e5ba
|
4
|
+
branch: cloudstack_template_requests
|
5
|
+
specs:
|
6
|
+
fog (1.3.1)
|
7
|
+
builder
|
8
|
+
excon (~> 0.13.0)
|
9
|
+
formatador (~> 0.2.0)
|
10
|
+
mime-types
|
11
|
+
multi_json (~> 1.0)
|
12
|
+
net-scp (~> 1.0.4)
|
13
|
+
net-ssh (>= 2.1.3)
|
14
|
+
nokogiri (~> 1.5.0)
|
15
|
+
ruby-hmac
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: http://rubygems.org/
|
19
|
+
specs:
|
20
|
+
builder (3.0.0)
|
21
|
+
excon (0.13.4)
|
22
|
+
formatador (0.2.3)
|
23
|
+
git (1.2.5)
|
24
|
+
jeweler (1.8.3)
|
25
|
+
bundler (~> 1.0)
|
26
|
+
git (>= 1.2.5)
|
27
|
+
rake
|
28
|
+
rdoc
|
29
|
+
jruby-pageant (1.0.2)
|
30
|
+
json (1.7.3)
|
31
|
+
mime-types (1.18)
|
32
|
+
multi_json (1.3.5)
|
33
|
+
net-scp (1.0.4)
|
34
|
+
net-ssh (>= 1.99.1)
|
35
|
+
net-ssh (2.4.0)
|
36
|
+
jruby-pageant (>= 1.0.2)
|
37
|
+
nokogiri (1.5.2)
|
38
|
+
rake (0.9.2.2)
|
39
|
+
rcov (1.0.0)
|
40
|
+
rdoc (3.12)
|
41
|
+
json (~> 1.4)
|
42
|
+
ruby-hmac (0.4.0)
|
43
|
+
shoulda (3.0.1)
|
44
|
+
shoulda-context (~> 1.0.0)
|
45
|
+
shoulda-matchers (~> 1.0.0)
|
46
|
+
shoulda-context (1.0.0)
|
47
|
+
shoulda-matchers (1.0.0)
|
48
|
+
trollop (1.16.2)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
bundler (~> 1.0.0)
|
55
|
+
fog!
|
56
|
+
jeweler (~> 1.8.3)
|
57
|
+
rcov
|
58
|
+
rdoc (~> 3.12)
|
59
|
+
shoulda
|
60
|
+
trollop (~> 1.16.2)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Ryan J. Geyer
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
= cloudstack_rightimage_uploader
|
2
|
+
|
3
|
+
A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack.
|
4
|
+
|
5
|
+
== Usage
|
6
|
+
|
7
|
+
First, install it
|
8
|
+
|
9
|
+
gem install cloudstack_rightimage_uploader
|
10
|
+
|
11
|
+
Then you can run it! This will upload the default KVM system VM for CloudStack 2.2.x
|
12
|
+
|
13
|
+
cloudstack_rightimage_uploader --host cloudstack-manager.domain.com \
|
14
|
+
--api-key abcdefg \
|
15
|
+
--api-secret 1234567 \
|
16
|
+
--template-uri http://download.cloud.com/releases/2.2.0/systemvm.qcow2.bz2 \
|
17
|
+
--template-md5 ec463e677054f280f152fcc264255d2f \
|
18
|
+
--template-format QCOW2 \
|
19
|
+
--template-hypervisor KVM \
|
20
|
+
--template-ostypeid 12 \
|
21
|
+
--template-displayname KVM_SystemVM
|
22
|
+
---
|
23
|
+
registertemplateresponse:
|
24
|
+
template:
|
25
|
+
- templatetype: USER
|
26
|
+
ostypename: KVM_SystemVM
|
27
|
+
name: KVM_SystemVM
|
28
|
+
hypervisor: KVM
|
29
|
+
zonename: Test
|
30
|
+
format: QCOW2
|
31
|
+
ispublic: false
|
32
|
+
domain: ROOT
|
33
|
+
account: admin
|
34
|
+
isfeatured: false
|
35
|
+
displaytext: KVM_SystemVM
|
36
|
+
checksum: ec463e677054f280f152fcc264255d2f
|
37
|
+
ostypeid: 12
|
38
|
+
isready: false
|
39
|
+
id: 1
|
40
|
+
zoneid: 1
|
41
|
+
passwordenabled: false
|
42
|
+
domainid: 1
|
43
|
+
crossZones: false
|
44
|
+
isextractable: false
|
45
|
+
created: 2012-05-21T15:29:58-0700
|
46
|
+
count: 1
|
47
|
+
|
48
|
+
== Changelog
|
49
|
+
|
50
|
+
* 0.0.1 - Initial release
|
51
|
+
|
52
|
+
== Contributing to cloudstack_rightimage_uploader
|
53
|
+
|
54
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
55
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
56
|
+
* Fork the project.
|
57
|
+
* Start a feature/bugfix branch.
|
58
|
+
* Commit and push until you are happy with your contribution.
|
59
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
60
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
61
|
+
|
62
|
+
== Copyright
|
63
|
+
|
64
|
+
Copyright (c) 2012 Ryan J. Geyer. See LICENSE.txt for
|
65
|
+
further details.
|
66
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "cloudstack_rightimage_uploader"
|
18
|
+
gem.homepage = "http://github.com/rgeyer/cloudstack_rightimage_uploader"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack.}
|
21
|
+
gem.description = %Q{A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack.}
|
22
|
+
gem.email = "me@ryangeyer.com"
|
23
|
+
gem.authors = ["Ryan J. Geyer"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
require 'rcov/rcovtask'
|
36
|
+
Rcov::RcovTask.new do |test|
|
37
|
+
test.libs << 'test'
|
38
|
+
test.pattern = 'test/**/test_*.rb'
|
39
|
+
test.verbose = true
|
40
|
+
test.rcov_opts << '--exclude "gems/*"'
|
41
|
+
end
|
42
|
+
|
43
|
+
task :default => :test
|
44
|
+
|
45
|
+
require 'rdoc/task'
|
46
|
+
Rake::RDocTask.new do |rdoc|
|
47
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
+
|
49
|
+
rdoc.rdoc_dir = 'rdoc'
|
50
|
+
rdoc.title = "cloudstack_rightimage_uploader #{version}"
|
51
|
+
rdoc.rdoc_files.include('README*')
|
52
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,81 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# Copyright (c) 2012 Ryan J. Geyer
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
require 'rubygems'
|
25
|
+
require 'bundler/setup'
|
26
|
+
require 'fog'
|
27
|
+
require 'trollop'
|
28
|
+
|
29
|
+
opts = Trollop::options do
|
30
|
+
banner <<-EOF
|
31
|
+
A quick commandline tool to upload RightScale RightImages to a CloudStack based cloud
|
32
|
+
|
33
|
+
EOF
|
34
|
+
opt :host, "Cloudstack Management Server Hostname/IP - Required", :type => :string
|
35
|
+
opt :api_key, "Cloudstack Management Admin API Key - Required", :type => :string
|
36
|
+
opt :api_secret, "Cloudstack Management Admin API Secret - Required", :type => :string
|
37
|
+
opt :template_uri, "Remote URI of the template to upload - Required", :type => :string
|
38
|
+
opt :template_format, "Binary format of the template, one of (QCOW2, RAW, VHD) - Required", :type => :string
|
39
|
+
opt :template_hypervisor, "Hypervisor type for the template - Required", :type => :string
|
40
|
+
opt :template_displayname, "Display name for the template - Required", :type => :string
|
41
|
+
opt :template_ostypeid, "Cloudstack OS Type ID for the template - Required", :type => :string
|
42
|
+
opt :template_zoneid, "Cloudstack Zone ID to upload the template into", :default => -1
|
43
|
+
opt :template_name, "Name for the template (default: Same as --template-displayname)", :type => :string
|
44
|
+
opt :template_md5, "MD5 checksum of the template to be uploaded", :type => :string
|
45
|
+
opt :port, "Cloudstack Management API Port", :default => 8080
|
46
|
+
opt :path, "Cloudstack Management API Path", :default => '/client/api'
|
47
|
+
opt :scheme, "Cloudstack Management API HTTP scheme (http or https)", :default => 'https'
|
48
|
+
end
|
49
|
+
|
50
|
+
Trollop::die :host, "You must specify a CloudStack Management Server Hostname/IP" unless opts[:host]
|
51
|
+
Trollop::die :api_key, "You must specify a CloudStack Management Server API Key" unless opts[:api_key]
|
52
|
+
Trollop::die :api_secret, "You must specify a CloudStack Management Server API Secret" unless opts[:api_secret]
|
53
|
+
Trollop::die :template_uri, "You must specify a Template to upload" unless opts[:template_uri]
|
54
|
+
Trollop::die :template_format, "You must specify a Template format" unless opts[:template_format]
|
55
|
+
Trollop::die :template_format, "You must specify a valid Template format" unless ['QCOW2', 'RAW', 'VHD'].include?(opts[:template_format].upcase)
|
56
|
+
Trollop::die :template_hypervisor, "You must specify a Template hypervisor" unless opts[:template_hypervisor]
|
57
|
+
Trollop::die :template_ostypeid, "You must specify a Template OS Type ID" unless opts[:template_ostypeid]
|
58
|
+
Trollop::die :template_displayname, "You must specify a Template name" unless opts[:template_displayname]
|
59
|
+
|
60
|
+
opts[:template_name] = opts[:template_displayname] unless opts[:template_name]
|
61
|
+
|
62
|
+
cs_fog = Fog::Compute.new(
|
63
|
+
:provider => 'cloudstack',
|
64
|
+
:cloudstack_host => opts[:host],
|
65
|
+
:cloudstack_port => opts[:port],
|
66
|
+
:cloudstack_path => opts[:path],
|
67
|
+
:cloudstack_scheme => opts[:scheme],
|
68
|
+
:cloudstack_api_key => opts[:api_key],
|
69
|
+
:cloudstack_secret_access_key => opts[:api_secret]
|
70
|
+
)
|
71
|
+
|
72
|
+
puts cs_fog.register_template(
|
73
|
+
opts[:template_displayname],
|
74
|
+
opts[:template_format],
|
75
|
+
opts[:template_hypervisor],
|
76
|
+
opts[:template_name],
|
77
|
+
opts[:template_ostypeid],
|
78
|
+
opts[:template_uri],
|
79
|
+
opts[:template_zoneid],
|
80
|
+
opts[:template_md5] ? {'checksum' => opts[:template_md5]} : {}
|
81
|
+
).to_yaml
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "cloudstack_rightimage_uploader"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ryan J. Geyer"]
|
12
|
+
s.date = "2012-05-21"
|
13
|
+
s.description = "A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack."
|
14
|
+
s.email = "me@ryangeyer.com"
|
15
|
+
s.executables = ["cloudstack_rightimage_uploader"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".rakeTasks",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/cloudstack_rightimage_uploader",
|
29
|
+
"cloudstack_rightimage_uploader.gemspec",
|
30
|
+
"lib/cloudstack_rightimage_uploader.rb",
|
31
|
+
"test/helper.rb",
|
32
|
+
"test/test_cloudstack_rightimage_uploader.rb"
|
33
|
+
]
|
34
|
+
s.homepage = "http://github.com/rgeyer/cloudstack_rightimage_uploader"
|
35
|
+
s.licenses = ["MIT"]
|
36
|
+
s.require_paths = ["lib"]
|
37
|
+
s.rubygems_version = "1.8.13"
|
38
|
+
s.summary = "A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack."
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
s.specification_version = 3
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
+
s.add_runtime_dependency(%q<fog>, [">= 0"])
|
45
|
+
s.add_runtime_dependency(%q<trollop>, ["~> 1.16.2"])
|
46
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
48
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
50
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<fog>, [">= 0"])
|
53
|
+
s.add_dependency(%q<trollop>, ["~> 1.16.2"])
|
54
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
58
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<fog>, [">= 0"])
|
62
|
+
s.add_dependency(%q<trollop>, ["~> 1.16.2"])
|
63
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
67
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
File without changes
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'cloudstack_rightimage_uploader'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,181 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cloudstack_rightimage_uploader
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ryan J. Geyer
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-05-21 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
type: :runtime
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
version_requirements: *id001
|
32
|
+
name: fog
|
33
|
+
prerelease: false
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
type: :runtime
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 83
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 16
|
45
|
+
- 2
|
46
|
+
version: 1.16.2
|
47
|
+
version_requirements: *id002
|
48
|
+
name: trollop
|
49
|
+
prerelease: false
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
type: :development
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
version_requirements: *id003
|
62
|
+
name: shoulda
|
63
|
+
prerelease: false
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
type: :development
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 31
|
72
|
+
segments:
|
73
|
+
- 3
|
74
|
+
- 12
|
75
|
+
version: "3.12"
|
76
|
+
version_requirements: *id004
|
77
|
+
name: rdoc
|
78
|
+
prerelease: false
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
type: :development
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 23
|
87
|
+
segments:
|
88
|
+
- 1
|
89
|
+
- 0
|
90
|
+
- 0
|
91
|
+
version: 1.0.0
|
92
|
+
version_requirements: *id005
|
93
|
+
name: bundler
|
94
|
+
prerelease: false
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
type: :development
|
97
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
hash: 49
|
103
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 8
|
106
|
+
- 3
|
107
|
+
version: 1.8.3
|
108
|
+
version_requirements: *id006
|
109
|
+
name: jeweler
|
110
|
+
prerelease: false
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
type: :development
|
113
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
version_requirements: *id007
|
123
|
+
name: rcov
|
124
|
+
prerelease: false
|
125
|
+
description: A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack.
|
126
|
+
email: me@ryangeyer.com
|
127
|
+
executables:
|
128
|
+
- cloudstack_rightimage_uploader
|
129
|
+
extensions: []
|
130
|
+
|
131
|
+
extra_rdoc_files:
|
132
|
+
- LICENSE.txt
|
133
|
+
- README.rdoc
|
134
|
+
files:
|
135
|
+
- .rakeTasks
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.rdoc
|
140
|
+
- Rakefile
|
141
|
+
- VERSION
|
142
|
+
- bin/cloudstack_rightimage_uploader
|
143
|
+
- cloudstack_rightimage_uploader.gemspec
|
144
|
+
- lib/cloudstack_rightimage_uploader.rb
|
145
|
+
- test/helper.rb
|
146
|
+
- test/test_cloudstack_rightimage_uploader.rb
|
147
|
+
homepage: http://github.com/rgeyer/cloudstack_rightimage_uploader
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
hash: 3
|
161
|
+
segments:
|
162
|
+
- 0
|
163
|
+
version: "0"
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 3
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
version: "0"
|
173
|
+
requirements: []
|
174
|
+
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 1.8.13
|
177
|
+
signing_key:
|
178
|
+
specification_version: 3
|
179
|
+
summary: A simple gem for uploading a RightScale RightImage (with a fingerprint) to CloudStack.
|
180
|
+
test_files: []
|
181
|
+
|