landrush 0.15.2 → 0.15.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: 7fe2d3b4f907c95908a327f488a341171abed7c7
4
- data.tar.gz: c042c9e0a170414c89d76791cf879354b7900018
3
+ metadata.gz: 437b97dffcd1d22c9693c7f1bd98c2cbd3c9a081
4
+ data.tar.gz: c9533a0782211add3e616a23146cd3fd9c67db44
5
5
  SHA512:
6
- metadata.gz: 47f1270f513f430dc32b12659a9363d75ce5eb7f66283273b29de9390f7d8addc8d6b4e895161d83aad36bc73f6d8414c9d10272a80667fc7ee9455d01044ce8
7
- data.tar.gz: c954f2ec4e41418b464139234ec12aeaef6de9003c27395f53b166e05a902ec3d7088402ef0f62b447f343236073950705fe4421d50f970ec79c590539d3c2b2
6
+ metadata.gz: c35c1b6d6d03e1bb57eb6da9a87876e8bfe3675ae6ac6f7a15567245a735ede6fe4477675b7e31490061134900afd433aa35bf4345bbce9aeb65f3460b71b3b1
7
+ data.tar.gz: 6837067de77128ca9d389a15059c81b555c9be9ec8a3b47f19e58c5f3f9ce088d31e559a4cfb124986541d4dd4965d20997beeec69e81677471ce21d879b37f1
@@ -67,16 +67,11 @@ module Landrush
67
67
  end
68
68
 
69
69
  def read_machine_hostname
70
- # Get hostname from vm config.
71
- return machine.config.vm.hostname if machine.config.vm.hostname.to_s.length > 0
72
-
73
- # Or gt machine's current hostname.
74
- machine.communicate.execute("hostname") do |type, data|
75
- return data if type == :stdout && data.to_s.length > 0
70
+ if machine.config.vm.hostname
71
+ return machine.config.vm.hostname
76
72
  end
77
73
 
78
- # Or default to "guest-vm"
79
- return "guest-vm"
74
+ "#{Pathname.pwd.basename}.#{config.tld}"
80
75
  end
81
76
 
82
77
  def enabled?
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = "0.15.2"
2
+ VERSION = "0.15.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: landrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Hinze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-21 00:00:00.000000000 Z
11
+ date: 2014-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubydns