rightscale_api 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +37 -0
- data/Rakefile +15 -0
- data/VERSION +1 -0
- data/pkg/rightscale-api-0.0.1.gem +0 -0
- metadata +67 -0
data/README.markdown
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
RightScale API
|
2
|
+
===================
|
3
|
+
|
4
|
+
This is a light Ruby wrapper around the RightScale API.
|
5
|
+
It, like the RightScale API itself is a little incomplete. It should however be ready soon for general use as it is being developed for a production application.
|
6
|
+
Below is an example of usage. Please contact if with bug reports or if you would like to contribute.
|
7
|
+
|
8
|
+
At the moment only GET requests are implemented.
|
9
|
+
Depends upon [HTTParty](http://github.com/jnunemaker/httparty)
|
10
|
+
|
11
|
+
Usage
|
12
|
+
-----
|
13
|
+
|
14
|
+
account = 1234
|
15
|
+
username = 'alibaba@example.com'
|
16
|
+
password = 'opensezme'
|
17
|
+
|
18
|
+
rightscale = RightScale::Client.new(account, username, password)
|
19
|
+
|
20
|
+
deployments = rightscale.deployments
|
21
|
+
servers = rightscale.servers
|
22
|
+
right_scripts = rightscale.right_scripts
|
23
|
+
|
24
|
+
|
25
|
+
production = deployments.index.find {|d| d['nickname'] ==
|
26
|
+
'Production Deployment V1'
|
27
|
+
}
|
28
|
+
|
29
|
+
production['servers'].each {|server|
|
30
|
+
settings = servers.settings(server['href'])
|
31
|
+
dns = settings['dns_name']
|
32
|
+
pp IPSocket.getaddress(dns) if dns
|
33
|
+
}
|
34
|
+
|
35
|
+
pp rightscale.right_scripts.show(1234)
|
36
|
+
pp rightscale.deployments.show(1234)
|
37
|
+
pp rightscale.servers.show(1234)
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
begin
|
2
|
+
require 'jeweler'
|
3
|
+
Jeweler::Tasks.new do |gemspec|
|
4
|
+
gemspec.name = "rightscale_api"
|
5
|
+
gemspec.summary = "A Ruby Wrapper for the RightScale API"
|
6
|
+
gemspec.description = "A Ruby Wrapper for the RightScale API"
|
7
|
+
gemspec.email = "david.michael@sonymusic.com"
|
8
|
+
gemspec.homepage = "http://github.com/dmichael/rightscale-api"
|
9
|
+
gemspec.authors = ["David Michael"]
|
10
|
+
gemspec.add_dependency "httparty"
|
11
|
+
end
|
12
|
+
Jeweler::GemcutterTasks.new
|
13
|
+
rescue LoadError
|
14
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
15
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.4.0
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rightscale_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Michael
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-03-11 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: httparty
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description: A Ruby Wrapper for the RightScale API
|
26
|
+
email: david.michael@sonymusic.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README.markdown
|
33
|
+
files:
|
34
|
+
- README.markdown
|
35
|
+
- Rakefile
|
36
|
+
- VERSION
|
37
|
+
- pkg/rightscale-api-0.0.1.gem
|
38
|
+
has_rdoc: true
|
39
|
+
homepage: http://github.com/dmichael/rightscale-api
|
40
|
+
licenses: []
|
41
|
+
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options:
|
44
|
+
- --charset=UTF-8
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: "0"
|
52
|
+
version:
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
version:
|
59
|
+
requirements: []
|
60
|
+
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 1.3.5
|
63
|
+
signing_key:
|
64
|
+
specification_version: 3
|
65
|
+
summary: A Ruby Wrapper for the RightScale API
|
66
|
+
test_files: []
|
67
|
+
|