vae 0.8.0 → 0.8.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 +4 -4
- data/lib/vae_local.rb +4 -42
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 968b84a9f4f9d74c4512a6e12120e95355565b61
|
4
|
+
data.tar.gz: b6922f9bc6557cebac842ad448e6076d66104a8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f9d1ccd1897c584d594722c1aa944e790cd474b25542aaf90ecf4e15f786540a46732ac40763ffcaa0b38e35df4a57ca6fbf6d4e2a675aead419404d089a20
|
7
|
+
data.tar.gz: 7e8d29f3da6464bf736b34816bfdcdae7e9fa8dc22fcb120b0a4eed8b893eae5e0100a0b257ea01f6daca7d36e49831b4742fbadf6634b005f5bb469a286ceee
|
data/lib/vae_local.rb
CHANGED
@@ -16,40 +16,6 @@ class VaeLocal
|
|
16
16
|
!system("lsof -i:#{port}", out: '/dev/null')
|
17
17
|
end
|
18
18
|
|
19
|
-
def get_svn_credentials(site)
|
20
|
-
home = Dir.chdir { Dir.pwd }
|
21
|
-
Dir.glob("#{home}/.subversion/auth/svn.simple/*").each do |file|
|
22
|
-
params = parse_svn_auth_file(file)
|
23
|
-
if params["svn:realmstring"] =~ /<http:\/\/svn(\.|_)#{site}.(vae|verb)site.com/ or params["svn:realmstring"] =~ /<http:\/\/#{site}(\.|_)svn.(vae|verb)site.com/
|
24
|
-
return params
|
25
|
-
end
|
26
|
-
end
|
27
|
-
{}
|
28
|
-
end
|
29
|
-
|
30
|
-
def parse_svn_auth_file(file)
|
31
|
-
key = nil
|
32
|
-
mode = nil
|
33
|
-
params = {}
|
34
|
-
File.read(file).each_line do |line|
|
35
|
-
line.strip!
|
36
|
-
if mode == :key
|
37
|
-
key = line
|
38
|
-
mode = nil
|
39
|
-
elsif mode == :value
|
40
|
-
params[key] = line
|
41
|
-
mode = nil
|
42
|
-
else
|
43
|
-
if line[0,1] == "K"
|
44
|
-
mode = :key
|
45
|
-
elsif line[0, 1] == "V"
|
46
|
-
mode = :value
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
params
|
51
|
-
end
|
52
|
-
|
53
19
|
def run
|
54
20
|
options = { port: 9999, server: ProxyServer, log_level: "warning" }
|
55
21
|
loop {
|
@@ -58,13 +24,15 @@ class VaeLocal
|
|
58
24
|
}
|
59
25
|
|
60
26
|
ARGV.options do |opts|
|
61
|
-
opts.banner = BANNER + "\n\nUsage: vae [options]\n starts a local development server\n vae [options] deploy\n
|
27
|
+
opts.banner = BANNER + "\n\nUsage: vae [options]\n starts a local development server\n vae [options] deploy\n deploys the source in Git repository or provided URL to the Vae servers\n\n If you are using the Vae Production environment features:\n vae [options] stage\n deploys the source in Git repository or provided URL to the staging environment\n vae [options] stagerelease\n deploys the source in Git repository or provided URL to the staging environment\n and releases it to the production environment\n vae [options] release\n releases the current staging environment to the production environment\n vae [options] rollback\n rolls back the production environment to a previous release\n\nAvailable Options:"
|
62
28
|
opts.on("-u","--username <username>","Your Vae username") { |o| options[:username] = o }
|
29
|
+
opts.on("-P","--password <password>","Your Vae password") { |o| options[:password] = o }
|
63
30
|
opts.on("-p","--port <port number>","Start server on this port") { |o| options[:port] = o.to_i; raise VaeError "Port #{o.to_i} is already in use." unless VaeLocal.port_open?(o.to_i) }
|
64
31
|
opts.on("-r","--root <path to site root>","Path to the root of the local copy of your Vae site.") { |o| options[:site_root] = o }
|
65
32
|
opts.on("-s","--site <subdomain>","Vae subdomain for this site") { |o| options[:site] = o }
|
66
33
|
opts.on("-f","--full-stack [php|hhvm]","Run in Full Stack Mode. Optionally provide 'php' or 'hhvm' to specify your preferred PHP runtime") { |o| options[:server] = FullStack; options[:php_runtime] = o }
|
67
|
-
opts.on("-
|
34
|
+
opts.on("-U","--url","If running stage or stagerelease, provide the URL of a ZIP file to deploy here") { |o| options[:branch] = o }
|
35
|
+
opts.on("-b","--branch","If running stage or stagerelease, override the Git branch to deploy here") { |o| options[:branch] = o }
|
68
36
|
opts.on("-d","--data-path <path>","Where to Store Content and Image Data When In Full Stack Mode") { |o| options[:data_path] = o }
|
69
37
|
opts.on("-l","--log-level <level>","Vaedb Log Level (for Full Stack Mode)") { |o| options[:log_level] = o }
|
70
38
|
opts.on_tail("-h","--help", "Show this help message") { puts opts; exit }
|
@@ -83,12 +51,6 @@ class VaeLocal
|
|
83
51
|
end
|
84
52
|
|
85
53
|
raise VaeError, "We could not determine the Vae subdomain for this site. Please specify it manually by using the --site option or create a __vae.yml file within the site root." if options[:site].nil?
|
86
|
-
|
87
|
-
unless options[:username]
|
88
|
-
svn_credentials = get_svn_credentials(options[:site])
|
89
|
-
options[:username] = svn_credentials["username"]
|
90
|
-
options[:password] = svn_credentials["password"]
|
91
|
-
end
|
92
54
|
raise VaeError, "We could not determine the Vae username that you use. Please specify it manually by using the --username option." if options[:username].nil?
|
93
55
|
if options[:password].nil?
|
94
56
|
options[:password] = ask("Please enter the Vae password for username #{options[:username]}:") { |q| q.echo = false }
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VER = "0.8.
|
1
|
+
VER = "0.8.1"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Action Verb, LLC
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-01-
|
12
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chunky_png
|