dssx 0.0.1 → 0.0.2.b
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/lib/dssx.rb +1 -1
- data/lib/dssx/cli.rb +6 -2
- data/lib/dssx/report.rb +4 -2
- metadata +5 -5
data/lib/dssx.rb
CHANGED
data/lib/dssx/cli.rb
CHANGED
@@ -25,20 +25,24 @@ module Dssx
|
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
|
+
option :verbose, :type => :boolean
|
28
29
|
desc "status [PATH]", "Check status"
|
29
30
|
def status(path=Dir.pwd)
|
30
31
|
puts "dssx status #{path}"
|
31
|
-
|
32
|
+
puts options[:verbose]
|
32
33
|
## Create status Report
|
33
34
|
report = Dssx::Report.new( path )
|
34
35
|
report.list_all
|
35
36
|
end
|
36
37
|
|
37
38
|
|
39
|
+
option :r
|
38
40
|
desc "update [PATH]", "Update to latest repository version"
|
39
41
|
def update(path=Dir.pwd)
|
40
42
|
puts "dssx update #{path}"
|
41
|
-
|
43
|
+
cmd = "dssc populate -recursive -replace -full #{path}"
|
44
|
+
cmd = cmd + " --version #{options[:r]}" if options[:r]
|
45
|
+
puts "=> #{cmd}"
|
42
46
|
end
|
43
47
|
|
44
48
|
desc "up [PATH]", "Alias for update"
|
data/lib/dssx/report.rb
CHANGED
@@ -35,7 +35,7 @@ module Dssx
|
|
35
35
|
|
36
36
|
def display items
|
37
37
|
Array( items ).each do |item|
|
38
|
-
puts "#{STATUS_OUTPUT[item.status]} #{item.path}"
|
38
|
+
puts "#{STATUS_OUTPUT[item.status]} #{@path}/#{item.path}"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
@@ -102,7 +102,9 @@ module Dssx
|
|
102
102
|
|
103
103
|
when /^(\s*File\s*Up-to-date\s*Copy\s*#{REGEXP_VERSION}\s*)/
|
104
104
|
line[$1.to_s] = ''
|
105
|
-
|
105
|
+
#if (:report_all) begin
|
106
|
+
# items << Item.new( :status_local, line.strip)
|
107
|
+
#end
|
106
108
|
|
107
109
|
when /^(\s*Cached File\s*Needs Update\s*Cache\s*#{REGEXP_VERSION}\s*)/
|
108
110
|
line[$1.to_s] = ''
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dssx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2.b
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Morgan Prior
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -67,9 +67,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
69
69
|
requirements:
|
70
|
-
- - ! '
|
70
|
+
- - ! '>'
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
72
|
+
version: 1.3.1
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
75
|
rubygems_version: 1.8.25
|