rscalr 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rscalr/api/scalr.rb +8 -0
- data/lib/rscalr/version.rb +1 -1
- metadata +5 -3
data/lib/rscalr/api/scalr.rb
CHANGED
@@ -318,9 +318,17 @@ class Scalr
|
|
318
318
|
h.map{|k,v| "#{k.to_s}=#{CGI::escape(v.to_s)}"}.join('&')
|
319
319
|
end
|
320
320
|
|
321
|
+
# Changes the configured environment setting for this instance
|
321
322
|
def env_id= env_id
|
322
323
|
@config[:env_id] = env_id
|
323
324
|
end
|
325
|
+
|
326
|
+
# Get the current environment value. A nil response means the "first" environment will be assumed for API calls,
|
327
|
+
# per the Scalr API docs.
|
328
|
+
def env_id
|
329
|
+
@config[:env_id]
|
330
|
+
end
|
331
|
+
|
324
332
|
end
|
325
333
|
|
326
334
|
# Represents a response from an API call. Thin wrapper around an REXML::Document of the parsed repsonse.
|
data/lib/rscalr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rscalr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-05 00:00:00.000000000
|
12
|
+
date: 2013-02-05 00:00:00.000000000 -08:00
|
13
|
+
default_executable:
|
13
14
|
dependencies: []
|
14
15
|
description: Rscalr is a Ruby implementation of the Scalr API, written to interface
|
15
16
|
cleanly with Chef and other internal release management tasks.
|
@@ -33,6 +34,7 @@ files:
|
|
33
34
|
- rscalr.gemspec
|
34
35
|
- test/test_sig.rb
|
35
36
|
- test_integration/test_client_farms.rb
|
37
|
+
has_rdoc: true
|
36
38
|
homepage:
|
37
39
|
licenses: []
|
38
40
|
post_install_message:
|
@@ -53,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
55
|
version: '0'
|
54
56
|
requirements: []
|
55
57
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.6.2
|
57
59
|
signing_key:
|
58
60
|
specification_version: 3
|
59
61
|
summary: Ruby implementation of the Scalr API
|