ow-nuxeo 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. data/bin/ow-nuxeo +42 -41
  2. metadata +1 -1
@@ -4,42 +4,6 @@
4
4
 
5
5
  require 'fileutils'
6
6
 
7
- # Help screen
8
- # ===========
9
-
10
- def displayHelp()
11
- putHeader '"ow-nuxeo" Help'
12
- puts
13
- puts '* EXAMPLES'
14
- puts 'ow-nuxeo init'
15
- puts 'ow-nuxeo build'
16
- puts 'ow-nuxeo fastbuild deploy run'
17
- puts 'ow-nuxeo setversion 1.0.0'
18
- puts 'ow-nuxeo release'
19
- puts ''
20
- puts '* AVAILABLE GOALS > MAVEN BUILD'
21
- puts 'build : Full build'
22
- puts 'fastbuild : Full build, but skip the tests'
23
- puts 'fastestbuild : Build only the changed code, skip the tests, run offline (note: it won\'t fetch the latest Nuxeo Studio plugin version)'
24
- puts 'test : Run the Maven tests only, in debug mode'
25
- puts 'release : Full build with the "release" flag enabled, to enable the use of the tagged Nuxeo Studio plugin'
26
- puts ''
27
- puts '* AVAILABLE GOALS > OTHER MAVEN-RELATED GOALS'
28
- puts 'init : Starts a wizard to create a new Nuxeo project.'
29
- puts 'getversion : Returns the current version of your project.'
30
- puts 'setversion [V] : Updates the project version (will be reflected on all modules of the root POM). Parameter [V] is the new version number.'
31
- puts ''
32
- puts '* AVAILABLE GOALS > SERVER CONTROL'
33
- puts 'deploy : Deploy the marketplace package to your instance'
34
- puts 'run : Run Nuxeo in console mode'
35
- puts 'reset : Resets the data of your Derby/H2 server (if you\'re using an external database, it will only purge the binaries)'
36
- puts ''
37
- puts '* AVAILABLE GOALS > MISC'
38
- puts 'version : Displays ow-nuxeo version'
39
- puts 'help : Displays this screen'
40
- puts ''
41
- end
42
-
43
7
  # Utility functions
44
8
  # =================
45
9
 
@@ -78,6 +42,47 @@ def runCommand(title, command)
78
42
  end
79
43
  end
80
44
 
45
+ # Help screen
46
+ # ===========
47
+
48
+ def displayHelp()
49
+ putHeader '"ow-nuxeo" Help'
50
+ puts
51
+ puts '* EXAMPLES'
52
+ puts 'ow-nuxeo init'
53
+ puts 'ow-nuxeo build'
54
+ puts 'ow-nuxeo fastbuild deploy run'
55
+ puts 'ow-nuxeo setversion 1.0.0'
56
+ puts 'ow-nuxeo release'
57
+ puts ''
58
+ puts '* AVAILABLE GOALS > MAVEN BUILD'
59
+ puts 'build : Full build'
60
+ puts 'fastbuild : Full build, but skip the tests'
61
+ puts 'fastestbuild : Build only the changed code, skip the tests, run offline (note: it won\'t fetch the latest Nuxeo Studio plugin version)'
62
+ puts 'test : Run the Maven tests only, in debug mode'
63
+ puts 'release : Full build with the "release" flag enabled, to enable the use of the tagged Nuxeo Studio plugin'
64
+ puts ''
65
+ puts '* AVAILABLE GOALS > OTHER MAVEN-RELATED GOALS'
66
+ puts 'init : Starts a wizard to create a new Nuxeo project.'
67
+ puts 'getversion : Returns the current version of your project.'
68
+ puts 'setversion [V] : Updates the project version (will be reflected on all modules of the root POM). Parameter [V] is the new version number.'
69
+ puts ''
70
+ puts '* AVAILABLE GOALS > SERVER CONTROL'
71
+ puts 'deploy : Deploy the marketplace package to your instance'
72
+ puts 'run : Run Nuxeo in console mode'
73
+ puts 'reset : Resets the data of your Derby/H2 server (if you\'re using an external database, it will only purge the binaries)'
74
+ puts ''
75
+ puts '* AVAILABLE GOALS > MISC'
76
+ puts 'version : Displays ow-nuxeo version'
77
+ puts 'help : Displays this screen'
78
+ puts ''
79
+ end
80
+
81
+ if ARGV.empty? || ARGV[0] == 'help'
82
+ displayHelp()
83
+ exit 0
84
+ end
85
+
81
86
  # Check ow-nuxeo requirements
82
87
  # ===========================
83
88
 
@@ -85,7 +90,6 @@ if ARGV[0] != 'init' && ARGV[0] != 'version'
85
90
  begin
86
91
  require './nuxeo-config.rb'
87
92
  rescue LoadError
88
- putHeader "WARNING: 'nuxeo-config.rb' is missing. Using default config."
89
93
  begin
90
94
  require './nuxeo-config.default.rb'
91
95
  rescue LoadError
@@ -102,6 +106,7 @@ if ARGV[0] != 'init' && ARGV[0] != 'version'
102
106
  puts "----------------------"
103
107
  exit -1
104
108
  end
109
+ putHeader "WARNING: 'nuxeo-config.rb' is missing. Using default config."
105
110
  end
106
111
  end
107
112
 
@@ -328,7 +333,3 @@ ARGV.each do |arg|
328
333
  end
329
334
 
330
335
  end
331
-
332
- if ARGV.empty?
333
- displayHelp()
334
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ow-nuxeo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: