vagrant-solidus 2.0.0 → 2.0.1
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 +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/vagrant-solidus/site_helpers.rb +4 -7
- data/lib/vagrant-solidus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MTJhZDA3NGIzZDM3ODIyMTY3YjI4YTExYWJmZTNmNGU3NWQ3ZGRhOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
N2Q4MGY3NGNlYTQwNTM0YmEwYTQ2ZWJmYTU1Y2Q5ZTgzN2RiODEzOQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NTI2NDUyMWQxY2IxYWM4ZGE1ODJmZTQ2NDYyYzMxODVjMTY0NTZkNzMwOWZm
|
|
10
|
+
MGIyM2M5YTg0ZTRmNzY5OTA3YzA0OGI4OTAwMzUzODM3N2E4NTNhZjlmN2Y0
|
|
11
|
+
ZGIyYjNjODgyMzkzMTkxMzNkOGEwNjUwNzlkNjAzNGVjNWZlNzE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Zjc1Y2YwNTMzMGFjYjFhN2IxMzk2NzZhYTQ5NzdhZGI3YWQ2OTk3YjdhMDcz
|
|
14
|
+
ZTZhN2Y4NWFkZGViYzVjMjgwNGM1NWY3MzE0ODAyNjU4MWVkNzQ3OWVmNTQ1
|
|
15
|
+
NDQxOTY2ZDI5NDFhZTA4YWY1NWQxNzcwMjEyNDgzNzM1ZmVkMWQ=
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.0.1 (May 7, 2015)
|
|
2
|
+
|
|
3
|
+
- Fix status command [[07741d6](https://github.com/solidusjs/vagrant-solidus/commit/07741d63646598a233235e393f067632e78ec8d5)]
|
|
4
|
+
|
|
1
5
|
## 2.0.0 (May 7, 2015)
|
|
2
6
|
|
|
3
7
|
- Update start messages to reflect new script names [[565ac76](https://github.com/solidusjs/vagrant-solidus/commit/565ac76e72bc1a13413ebb62d331fd172c199932)]
|
|
@@ -72,6 +72,7 @@ module VagrantPlugins
|
|
|
72
72
|
@site_guest_path = File.join(ROOT_GUEST_PATH, @site_name)
|
|
73
73
|
@site_log_file_path = ".vagrant-solidus/log/#{@site_name}.log"
|
|
74
74
|
@site_log_file_guest_path = File.join(ROOT_GUEST_PATH, @site_log_file_path)
|
|
75
|
+
@package = JSON.load(File.new(File.join(@site_host_path, 'package.json'))) rescue {}
|
|
75
76
|
|
|
76
77
|
if config = sites[@site_name]
|
|
77
78
|
@site_port = config['port']
|
|
@@ -94,7 +95,7 @@ module VagrantPlugins
|
|
|
94
95
|
end
|
|
95
96
|
|
|
96
97
|
def validate_site
|
|
97
|
-
|
|
98
|
+
!@package['dependencies']['solidus'].empty? rescue false
|
|
98
99
|
end
|
|
99
100
|
|
|
100
101
|
def save_site
|
|
@@ -158,7 +159,7 @@ module VagrantPlugins
|
|
|
158
159
|
|
|
159
160
|
def node_version
|
|
160
161
|
unless @node_version
|
|
161
|
-
@node_version = package['engines']['node'] if package['engines']
|
|
162
|
+
@node_version = @package['engines']['node'] if @package['engines']
|
|
162
163
|
@node_version = DEFAULT_NODE_VERSION if !@node_version || @node_version.empty?
|
|
163
164
|
end
|
|
164
165
|
@node_version
|
|
@@ -170,16 +171,12 @@ module VagrantPlugins
|
|
|
170
171
|
|
|
171
172
|
def npm_version
|
|
172
173
|
unless @npm_version
|
|
173
|
-
@npm_version = package['engines']['npm'] if package['engines']
|
|
174
|
+
@npm_version = @package['engines']['npm'] if @package['engines']
|
|
174
175
|
@npm_version = DEFAULT_NPM_VERSION if !@npm_version || @npm_version.empty?
|
|
175
176
|
end
|
|
176
177
|
@npm_version
|
|
177
178
|
end
|
|
178
179
|
|
|
179
|
-
def package
|
|
180
|
-
@package ||= JSON.load(File.new(File.join(@site_host_path, 'package.json')))
|
|
181
|
-
end
|
|
182
|
-
|
|
183
180
|
#########################################################################
|
|
184
181
|
# Upstart
|
|
185
182
|
#########################################################################
|