buildserver 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4755cb02e6340c1620396a9b1a0b76e202c49209
4
- data.tar.gz: c3fcfd6c6e90e216b88ef5760760a248249ec4e6
3
+ metadata.gz: 504dec589ff633b4c9dfe398087b3b964e5ab730
4
+ data.tar.gz: a5d97485a942759a550ba4e223f7d208cdd50c14
5
5
  SHA512:
6
- metadata.gz: 894790ca78703a31dd210e299b4c64732caaf6f997c982f6fdaddca3fde692fb58e2d8977b26b3a4351ce8037baa40ad5c36ed598bd64f14d387b73bc58c942c
7
- data.tar.gz: 39527a7d1a5231db090127673fa1e28405729b2745f379a319878b40dcdad0cdec250a60727e1066f53daff90199d57bc8a6267c50650118f27f5bd9396c6c3e
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.1'
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.}
@@ -3,13 +3,14 @@ require 'json'
3
3
  module Buildserver
4
4
 
5
5
  class Instance
6
- attr_reader :hostname, :ip_address, :role
6
+ attr_reader :hostname, :role, :ip_address, :local_ip_address
7
7
 
8
- def initialize(hostname, ip_address, role)
9
- @hostname = hostname
10
- @ip_address = ip_address
11
- @role = role.to_s
12
- @build_blocks = []
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, role)
17
- @instances << Instance.new(hostname, ip_address, role)
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.1
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-07-18 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler