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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adef0fcdda4f293672570823512bea24b69ea45e
4
- data.tar.gz: fb316e5cd5f72be5ab47fb278f734d37c9f28428
3
+ metadata.gz: 5f50125d078ca9f8ab3f55d8bea9a683afc27c85
4
+ data.tar.gz: c03963c23329d179a4d1adce967cc56fd60baf7e
5
5
  SHA512:
6
- metadata.gz: 205d2b4360dcddd028cfffcb22be89bfc9875f2e64f226def306f6393cb3cf040c57cdddc16150342307035c3f4237b16665c3edefcdf7566961ef4bc364f8c4
7
- data.tar.gz: 0950251a214e12ab3b3f523b0349122b6d9703eb4ac929fe692435535d3b7d11df597865aaba03677ea5bd4bf786b6b9a7f426d58e63e4b04897aa7fe0328047
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
@@ -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 and update commands\.
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
@@ -22,8 +22,8 @@ OPTIONS
22
22
  Prints out additional logging information
23
23
 
24
24
  COMMANDS
25
- We divide xnlogic subcommands into the initial command and update com-
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
 
@@ -1,3 +1,3 @@
1
1
  module Xnlogic
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.16"
3
3
  end
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 and update commands.
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xnlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darrick Wiebe