sml-rubber 0.9.1 → 0.9.3
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.3
|
@@ -3,13 +3,10 @@ load 'deploy' if respond_to?(:namespace) # cap2 differentiator
|
|
3
3
|
env = ENV['RUBBER_ENV'] ||= (ENV['RAILS_ENV'] || 'production')
|
4
4
|
root = File.dirname(__FILE__)
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
# then try as a gem
|
11
|
-
require 'rubber'
|
12
|
-
end
|
6
|
+
# this tries first as a rails plugin then as a gem
|
7
|
+
$:.unshift "#{root}/vendor/plugins/rubber/lib/"
|
8
|
+
require 'rubber'
|
9
|
+
|
13
10
|
Rubber::initialize(root, env)
|
14
11
|
require 'rubber/capistrano'
|
15
12
|
|
@@ -1,16 +1,13 @@
|
|
1
1
|
# rails tries to load this from generator dir, so skip it.
|
2
2
|
if __FILE__ !~ /rubber\/generators\/vulcanize/
|
3
3
|
|
4
|
-
begin
|
5
|
-
# first try as a rails plugin
|
6
|
-
require "#{File.dirname(__FILE__)}/../../vendor/plugins/rubber/lib/rubber.rb"
|
7
|
-
rescue LoadError
|
8
|
-
# then try as a gem
|
9
|
-
require 'rubber'
|
10
|
-
end
|
11
|
-
|
12
4
|
env = ENV['RUBBER_ENV'] ||= (ENV['RAILS_ENV'] || 'development')
|
13
5
|
root = File.dirname(__FILE__) + '/../..'
|
6
|
+
|
7
|
+
# this tries first as a rails plugin then as a gem
|
8
|
+
$:.unshift "#{root}/vendor/plugins/rubber/lib/"
|
9
|
+
require 'rubber'
|
10
|
+
|
14
11
|
Rubber::initialize(root, env)
|
15
12
|
|
16
13
|
require 'rubber/tasks/rubber'
|
data/lib/rubber/cloud/aws.rb
CHANGED
@@ -23,8 +23,10 @@ module Rubber
|
|
23
23
|
|
24
24
|
def describe_instances(instance_id=nil)
|
25
25
|
instances = []
|
26
|
+
opts = {}
|
27
|
+
opts[:instance_id] = instance_id if instance_id
|
26
28
|
|
27
|
-
response = @ec2.describe_instances(
|
29
|
+
response = @ec2.describe_instances(opts)
|
28
30
|
response.reservationSet.item.each do |ritem|
|
29
31
|
ritem.instancesSet.item.each do |item|
|
30
32
|
instance = {}
|
data/lib/rubber/dns/nettica.rb
CHANGED
@@ -7,7 +7,7 @@ module Rubber
|
|
7
7
|
def initialize(env)
|
8
8
|
super(env)
|
9
9
|
@nettica_env = @env.dns_providers.nettica
|
10
|
-
@client = Nettica::Client.new(@nettica_env.user, @nettica_env.password)
|
10
|
+
@client = ::Nettica::Client.new(@nettica_env.user, @nettica_env.password)
|
11
11
|
@ttl = (@nettica_env.ttl || 300).to_i
|
12
12
|
@record_type = @nettica_env.record_type || "A"
|
13
13
|
end
|
data/lib/rubber/dns.rb
CHANGED
data/lib/rubber.rb
CHANGED
@@ -2,9 +2,11 @@ $:.unshift(File.dirname(__FILE__))
|
|
2
2
|
|
3
3
|
module Rubber
|
4
4
|
|
5
|
+
VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).chomp
|
6
|
+
|
5
7
|
def self.initialize(project_root, project_env)
|
6
8
|
return if defined?(RUBBER_ROOT) && defined?(RUBBER_ENV)
|
7
|
-
|
9
|
+
|
8
10
|
Object.const_set('RUBBER_ENV', project_env)
|
9
11
|
Object.const_set('RUBBER_ROOT', project_root)
|
10
12
|
|
@@ -24,7 +26,6 @@ module Rubber
|
|
24
26
|
end
|
25
27
|
end
|
26
28
|
|
27
|
-
VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).chomp
|
28
29
|
end
|
29
30
|
|
30
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sml-rubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Conway
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-10 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|