xnlogic 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xnlogic/cli/application.rb +11 -0
- data/lib/xnlogic/cli.rb +12 -0
- data/lib/xnlogic/man/xnlogic +7 -1
- data/lib/xnlogic/man/xnlogic.txt +6 -2
- data/lib/xnlogic/version.rb +1 -1
- data/man/xnlogic.ronn +6 -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: 5f50125d078ca9f8ab3f55d8bea9a683afc27c85
|
4
|
+
data.tar.gz: c03963c23329d179a4d1adce967cc56fd60baf7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bcaccfd8996ff086cccc701c532242c988e898e3807fad4696702efa721bb3465be0312a65d8b444974cf921e0b48dff9cfc9d590e060845afce940e8607c56
|
7
|
+
data.tar.gz: 2aa85161597fbc6b6d1204eb0970fb7284ff79b841bb8d47380898fd4cb96c5660abfa26cc85565a90097926c07f092ff6de7ea0ddfd7702ef2c28c51c56b96d
|
@@ -46,6 +46,17 @@ module Xnlogic
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
def show_source(source)
|
50
|
+
case options['format']
|
51
|
+
when 'bundler'
|
52
|
+
Xnlogic.ui.info "source \"#{source}\""
|
53
|
+
when 'rubygems'
|
54
|
+
Xnlogic.ui.info "gem sources -a #{source}"
|
55
|
+
else
|
56
|
+
Xnlogic.ui.info source
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
49
60
|
def application
|
50
61
|
generate_vm_config unless options['vm_config']
|
51
62
|
generate_application
|
data/lib/xnlogic/cli.rb
CHANGED
@@ -98,6 +98,18 @@ module Xnlogic
|
|
98
98
|
end
|
99
99
|
|
100
100
|
|
101
|
+
desc "gem_sources [OPTIONS]", "Show the gem source URLs as configured in the current application"
|
102
|
+
method_option "key", type: :string, banner:
|
103
|
+
"You must supply an XN key to be able to download the proprietary dependencies needed to boot your application"
|
104
|
+
method_option "format", type: :string, banner:
|
105
|
+
"Optionally specify either bundler or rubygems"
|
106
|
+
def gem_sources
|
107
|
+
app = Application.new(options, self).in_existing_project
|
108
|
+
app.show_source "https://rubygems.org/"
|
109
|
+
app.show_source "https://#{app.options['key']}@gems.xnlogic.com/"
|
110
|
+
end
|
111
|
+
|
112
|
+
|
101
113
|
def self.source_root
|
102
114
|
File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
103
115
|
end
|
data/lib/xnlogic/man/xnlogic
CHANGED
@@ -26,7 +26,7 @@ Prints all output without color
|
|
26
26
|
Prints out additional logging information
|
27
27
|
.
|
28
28
|
.SH "COMMANDS"
|
29
|
-
We divide \fBxnlogic\fR subcommands into the initial command
|
29
|
+
We divide \fBxnlogic\fR subcommands into the initial command, update commands, and utilities\.
|
30
30
|
.
|
31
31
|
.SH "INITIAL COMMAND"
|
32
32
|
.
|
@@ -44,6 +44,12 @@ Updates an existing application with the current Vagrant VM configuration, or ca
|
|
44
44
|
\fBxnlogic deployment(1)\fR
|
45
45
|
Generates deployment files in an existing application\.
|
46
46
|
.
|
47
|
+
.SH "UTILITY COMMANDS"
|
48
|
+
.
|
49
|
+
.TP
|
50
|
+
\fBxnlogic gem_sources(1)\fR
|
51
|
+
Displays the gem sources needed by this application
|
52
|
+
.
|
47
53
|
.TP
|
48
54
|
\fBxnlogic help(1)\fR
|
49
55
|
Displays detailed help for each subcommand
|
data/lib/xnlogic/man/xnlogic.txt
CHANGED
@@ -22,8 +22,8 @@ OPTIONS
|
|
22
22
|
Prints out additional logging information
|
23
23
|
|
24
24
|
COMMANDS
|
25
|
-
We divide xnlogic subcommands into the
|
26
|
-
mands.
|
25
|
+
We divide xnlogic subcommands into the initial command, update com-
|
26
|
+
mands, and utilities.
|
27
27
|
|
28
28
|
INITIAL COMMAND
|
29
29
|
xnlogic application(1)
|
@@ -38,6 +38,10 @@ APPLICATION UPDATES
|
|
38
38
|
xnlogic deployment(1)
|
39
39
|
Generates deployment files in an existing application.
|
40
40
|
|
41
|
+
UTILITY COMMANDS
|
42
|
+
xnlogic gem_sources(1)
|
43
|
+
Displays the gem sources needed by this application
|
44
|
+
|
41
45
|
xnlogic help(1)
|
42
46
|
Displays detailed help for each subcommand
|
43
47
|
|
data/lib/xnlogic/version.rb
CHANGED
data/man/xnlogic.ronn
CHANGED
@@ -22,7 +22,7 @@ started, or https://xnlogic.zendesk.com/hc/en-us for support.
|
|
22
22
|
|
23
23
|
## COMMANDS
|
24
24
|
|
25
|
-
We divide `xnlogic` subcommands into the initial command
|
25
|
+
We divide `xnlogic` subcommands into the initial command, update commands, and utilities.
|
26
26
|
|
27
27
|
## INITIAL COMMAND
|
28
28
|
|
@@ -38,5 +38,10 @@ We divide `xnlogic` subcommands into the initial command and update commands.
|
|
38
38
|
* `xnlogic deployment(1)`:
|
39
39
|
Generates deployment files in an existing application.
|
40
40
|
|
41
|
+
## UTILITY COMMANDS
|
42
|
+
|
43
|
+
* `xnlogic gem_sources(1)`:
|
44
|
+
Displays the gem sources needed by this application
|
45
|
+
|
41
46
|
* `xnlogic help(1)`:
|
42
47
|
Displays detailed help for each subcommand
|