scalarium 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.4.4
2
+
3
+ * Supports Ruby 1.8 now. (Till Klampaeckel, Robin Mehner)
4
+
1
5
  Version 0.4.3
2
6
 
3
7
  * Ensure only the current user can read the .scalarium_token. (Till
@@ -6,7 +10,6 @@ Version 0.4.3
6
10
  * Remove "warning: don't put space before argument parentheses" (Till
7
11
  Klampaeckel)
8
12
 
9
-
10
13
  Version 0.4.0
11
14
 
12
15
  * Big refactor of scalarium class
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- = Scalarium =
1
+ # Scalarium
2
2
 
3
3
  Scalarium rubygem is a tool for interacting with scalarium and with the ec2 instances.
4
4
 
5
- == Commands ==
5
+ ## Commands
6
6
 
7
- scalarium inspect CLOUDNAME
7
+ scalarium inspect CLOUDNAME
8
8
 
9
9
  See the roles with the instances and their ips.
10
10
 
@@ -28,7 +28,7 @@ Updates the cookbooks in the **CLOUDNAME**. If **ROL_OR_INSTANCE** is present, o
28
28
 
29
29
  scalarium run_recipe CLOUDNAME [ROL_OR_INSTANCE] RECIPE
30
30
 
31
- Run the **RECIPE** in the **CLOUDNAME**.
31
+ Run the **RECIPE** in the **CLOUDNAME**.
32
32
 
33
33
 
34
34
  scalarium deploy APPNAME
@@ -5,5 +5,9 @@ class Scalarium
5
5
  @token = token
6
6
  super(attributes)
7
7
  end
8
+
9
+ def id
10
+ @table[:id]
11
+ end
8
12
  end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  class Scalarium
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -0,0 +1,16 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+
4
+ $:.unshift(File.dirname(File.dirname(__FILE__)) + '/lib')
5
+
6
+ require 'scalarium'
7
+
8
+ class TestCloud < Test::Unit::TestCase
9
+
10
+ # nail a bug on Ruby < 1.9
11
+ def testIdOnCloud
12
+ c = Scalarium::Cloud.new('foo', {"id" => "cloud_id"})
13
+ assert_equal("cloud_id", c.id)
14
+ end
15
+
16
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scalarium
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Guillermo \xC3\x81lvarez"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-17 00:00:00 Z
18
+ date: 2012-07-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client
@@ -129,6 +129,7 @@ files:
129
129
  - lib/scalarium/rol.rb
130
130
  - lib/scalarium/version.rb
131
131
  - scalarium.gemspec
132
+ - tests/cloud.rb
132
133
  homepage: ""
133
134
  licenses: []
134
135