buildserver 0.0.2 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 504dec589ff633b4c9dfe398087b3b964e5ab730
4
- data.tar.gz: a5d97485a942759a550ba4e223f7d208cdd50c14
3
+ metadata.gz: 632dc7e5de0d863ba544ef55d49b14bc17c9ea76
4
+ data.tar.gz: 0fbd83353f425cf7589a03952e7a84ea549b3c7c
5
5
  SHA512:
6
- metadata.gz: 719c9d80f338c5cebe0792addbe8746614ed9bd094f57460c9b6338107420ceb754dd5515b889c9b30ebb7f0c7c3f43fe57985175d432309df2f33c5da9ea1ad
7
- data.tar.gz: 5a4b0d4b23b6689d7fbf9b558697fd7d5420ebc0f09ddf214858a143cca7d7038c3a52ebcaf6167ae22958c17e058208bcbe4451268d5e5e68256e53c64ad597
6
+ metadata.gz: 05db74577bc8bd0ae041914ffeaaa7b018a9eb4977b33e27f8a842c66c2978eb67c4322f73a37aae4c2905fd20d4f083009d53b43f132b62877cad57e957eb6b
7
+ data.tar.gz: 560bc8cb147c2a040fdf206a90bd61a8733d2faefd76765977d0c24b32dec7b9005a537e1244f7d3e1c0522eaa0688521cb9754ee38d0beec6105329b0c62e99
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.2'
7
+ spec.version = '0.0.3'
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.rb CHANGED
@@ -13,8 +13,8 @@ module Buildserver
13
13
  @config = config
14
14
  end
15
15
 
16
- def add_instance(hostname, role, ip_address, local_ip_address)
17
- @instances << Instance.new(hostname, role, ip_address, local_ip_address)
16
+ def add_instance(hostname, ip_address, role)
17
+ @instances << Instance.new(hostname, ip_address, role)
18
18
  end
19
19
 
20
20
  def add_build_block(for_role, build_block)
@@ -3,14 +3,13 @@ require 'json'
3
3
  module Buildserver
4
4
 
5
5
  class Instance
6
- attr_reader :hostname, :role, :ip_address, :local_ip_address
6
+ attr_reader :hostname, :ip_address, :role
7
7
 
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 = []
8
+ def initialize(hostname, ip_address, role)
9
+ @hostname = hostname
10
+ @ip_address = ip_address
11
+ @role = role.to_s
12
+ @build_blocks = []
14
13
  end
15
14
 
16
15
  def add_build_block(block)
@@ -18,7 +17,7 @@ module Buildserver
18
17
  end
19
18
 
20
19
  def to_s
21
- "#{@hostname}/#{@ip_address}/#{@local_ip_address} - #{@role}"
20
+ "#{@hostname}/#{@ip_address} - #{@role}"
22
21
  end
23
22
 
24
23
  def services
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.2
4
+ version: 0.0.3
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-12-10 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler