buildserver 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/buildserver.gemspec +1 -1
- data/lib/buildserver/instance.rb +8 -7
- data/lib/buildserver.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504dec589ff633b4c9dfe398087b3b964e5ab730
|
4
|
+
data.tar.gz: a5d97485a942759a550ba4e223f7d208cdd50c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719c9d80f338c5cebe0792addbe8746614ed9bd094f57460c9b6338107420ceb754dd5515b889c9b30ebb7f0c7c3f43fe57985175d432309df2f33c5da9ea1ad
|
7
|
+
data.tar.gz: 5a4b0d4b23b6689d7fbf9b558697fd7d5420ebc0f09ddf214858a143cca7d7038c3a52ebcaf6167ae22958c17e058208bcbe4451268d5e5e68256e53c64ad597
|
data/buildserver.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "buildserver"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.2'
|
8
8
|
spec.authors = ["Kasper Grubbe"]
|
9
9
|
spec.email = ["kawsper@gmail.com"]
|
10
10
|
spec.summary = %q{Lets you easily compile bash scripts from Ruby to build server instances on your favorite Linux distro.}
|
data/lib/buildserver/instance.rb
CHANGED
@@ -3,13 +3,14 @@ require 'json'
|
|
3
3
|
module Buildserver
|
4
4
|
|
5
5
|
class Instance
|
6
|
-
attr_reader :hostname, :ip_address, :
|
6
|
+
attr_reader :hostname, :role, :ip_address, :local_ip_address
|
7
7
|
|
8
|
-
def initialize(hostname, ip_address,
|
9
|
-
@hostname
|
10
|
-
@
|
11
|
-
@
|
12
|
-
@
|
8
|
+
def initialize(hostname, role, ip_address, local_ip_address)
|
9
|
+
@hostname = hostname
|
10
|
+
@role = role.to_s
|
11
|
+
@ip_address = ip_address
|
12
|
+
@local_ip_address = local_ip_address
|
13
|
+
@build_blocks = []
|
13
14
|
end
|
14
15
|
|
15
16
|
def add_build_block(block)
|
@@ -17,7 +18,7 @@ module Buildserver
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def to_s
|
20
|
-
"#{@hostname}/#{@ip_address} - #{@role}"
|
21
|
+
"#{@hostname}/#{@ip_address}/#{@local_ip_address} - #{@role}"
|
21
22
|
end
|
22
23
|
|
23
24
|
def services
|
data/lib/buildserver.rb
CHANGED
@@ -13,8 +13,8 @@ module Buildserver
|
|
13
13
|
@config = config
|
14
14
|
end
|
15
15
|
|
16
|
-
def add_instance(hostname, ip_address,
|
17
|
-
@instances << Instance.new(hostname, ip_address,
|
16
|
+
def add_instance(hostname, role, ip_address, local_ip_address)
|
17
|
+
@instances << Instance.new(hostname, role, ip_address, local_ip_address)
|
18
18
|
end
|
19
19
|
|
20
20
|
def add_build_block(for_role, build_block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Grubbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|