vagrant-soa 0.3.1 → 0.3.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 +4 -4
- data/lib/vagrant-soa/actions/install_services.rb +14 -1
- data/lib/vagrant-soa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ddf4c189d3007118c7c28eec41cc5cec3fa3078
|
4
|
+
data.tar.gz: 1383801f3598b670d6430ae266394f3956b8e1c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f84a4bb90fc147cbdf6637f637c50ab86031ac9e893daca726954d34042dd815308a9e05f58ee94d343cf03bc2058c7b7a650d6105681b1e962357391e8429
|
7
|
+
data.tar.gz: d8cbc4d7c706679d5c4ef531c1a0afa3472121c3c29135ca71d4a4988059b257abc8a6f72856f7959f751dc7f3ab36981fca7a388f158878f04327c48176b9ec
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'fileutils'
|
1
2
|
require_relative '../errors'
|
2
3
|
|
3
4
|
module VagrantPlugins
|
@@ -162,11 +163,23 @@ module VagrantPlugins
|
|
162
163
|
end
|
163
164
|
end
|
164
165
|
|
166
|
+
def symlink_local_service(service, config)
|
167
|
+
target_directory = File.join @install_dir, service
|
168
|
+
# make sure the repo is checked out
|
169
|
+
if File.directory? target_directory
|
170
|
+
@env[:ui].info "Local Service: #{service} is already symlinked"
|
171
|
+
else
|
172
|
+
FileUtils.symlink File.expand_path(config['local_path']), target_directory
|
173
|
+
@env[:ui].info "Symlinking local service: #{service} to #{target_directory}"
|
174
|
+
end
|
175
|
+
return target_directory
|
176
|
+
end
|
177
|
+
|
165
178
|
# To install a service we clone the service repo and add the puppet
|
166
179
|
# path to @puppet_module_registry.puppet_module_paths.
|
167
180
|
def install_service(service, config)
|
168
181
|
if config.has_key? 'local_path'
|
169
|
-
target_directory =
|
182
|
+
target_directory = symlink_local_service(service, config)
|
170
183
|
else
|
171
184
|
target_directory = clone_service_repo(service, config)
|
172
185
|
end
|
data/lib/vagrant-soa/version.rb
CHANGED