nerdEd-visage 0.2.2 → 0.2.3
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.
- data/VERSION.yml +1 -1
- data/Visage.gemspec +1 -1
- data/bin/visage +4 -23
- metadata +1 -1
data/VERSION.yml
CHANGED
data/Visage.gemspec
CHANGED
data/bin/visage
CHANGED
@@ -2,22 +2,6 @@
|
|
2
2
|
|
3
3
|
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
4
4
|
|
5
|
-
help = <<HELP
|
6
|
-
Visage is a simple utility to convert .cdr and .dvdmedia files into .iso files. Visage is dependent on the OS X hdiutil command.
|
7
|
-
|
8
|
-
USAGE: ./visage.rb [options] [path_to_dir]
|
9
|
-
|
10
|
-
OPTIONS:
|
11
|
-
-s -S -source Specifies the directory in which Visage will look for source files, or the filename of a specific source file.
|
12
|
-
If not specified visage will assume the current working directory is its source.
|
13
|
-
|
14
|
-
-d -D -destination Specifies the directory into which Visage will deposit the generates iso(s). If not specifies Visage will use
|
15
|
-
the current working directory.
|
16
|
-
|
17
|
-
-h -H -help Displays help information/examples
|
18
|
-
|
19
|
-
HELP
|
20
|
-
|
21
5
|
require 'rubygems'
|
22
6
|
require 'optiflag'
|
23
7
|
require 'visage'
|
@@ -28,20 +12,19 @@ require 'visage'
|
|
28
12
|
module VisageOptions extend OptiFlagSet
|
29
13
|
optional_flag "source" do
|
30
14
|
alternate_forms "s", "S"
|
15
|
+
description "Specifies the directory in which Visage will look for source files, or the filename of a specific source file. If not specified visage will assume the current working directory is its source."
|
31
16
|
default '.'
|
32
17
|
end
|
33
18
|
|
34
19
|
optional_flag "destination" do
|
35
20
|
alternate_forms "d", "D"
|
21
|
+
description "Specifies the directory into which Visage will deposit the generates iso(s). If not specifies Visage will use the current working directory."
|
36
22
|
default '.'
|
37
23
|
end
|
38
24
|
|
39
|
-
optional_switch_flag "help" do
|
40
|
-
alternate_forms "h", "H"
|
41
|
-
end
|
42
|
-
|
43
25
|
optional_switch_flag "version" do
|
44
26
|
alternate_forms "v", "V"
|
27
|
+
description "Returns version information."
|
45
28
|
end
|
46
29
|
|
47
30
|
and_process!
|
@@ -50,9 +33,7 @@ end
|
|
50
33
|
#####################################################
|
51
34
|
# Run #
|
52
35
|
#####################################################
|
53
|
-
if( ARGV.flags.
|
54
|
-
puts help
|
55
|
-
elsif( ARGV.flags.version? )
|
36
|
+
if( ARGV.flags.version? )
|
56
37
|
puts Visage.version
|
57
38
|
else
|
58
39
|
converter = Visage::Converter.new( ARGV.flags.source, ARGV.flags.destination )
|