dssx 0.0.2 → 0.0.3.a
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.
- checksums.yaml +15 -0
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/lib/dssx.rb +1 -1
- data/lib/dssx/cli.rb +28 -22
- metadata +7 -11
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODBkODNjYmQzOWYxMzM3MTlmNTU5MDNkNmZjZDdjZGExNmQzZTM5Ng==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YTE1ZjNlZDhiOTU0MDZjZTNkM2E4MmUyNWRmMTAxM2NmOWE0MWExMQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OWU2YjMzZTEzMzM5NWUxOWJhNWNhNmZlMTdiYmZjNjllMzllMTYzYTRkZWRl
|
10
|
+
ZGNlOGQ4YTE2YWJjZDY3ODZhOTA0NDhjN2ZlYTU0MWYwMmU4ODllZTU5MTdi
|
11
|
+
NTE5M2ZjZTYyZmNmZDE3NjMzMmVlZDFhNTcwODQ5OGI3MTExZDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MGEyM2I2ODk0ZWNlYjhhYTdlZDg3MzRjNDM2OTJlZjFjNzg5NGU5NDNiNjRl
|
14
|
+
OGU1NDlkNGUzN2YwMjAyMzkzYmNlMDBjMTYzYTU2YzRjODI1NzMyZGRjNmNl
|
15
|
+
YWZiMmQzODBmNzE3NzYwYWRmYjEwMDVmOGM1NzNmOWMxYzAzYmQ=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-1.9.3
|
1
|
+
ruby-1.9.3
|
data/Gemfile
CHANGED
data/lib/dssx.rb
CHANGED
data/lib/dssx/cli.rb
CHANGED
@@ -7,20 +7,22 @@ module Dssx
|
|
7
7
|
class CLI < Thor
|
8
8
|
#include Thor::Actions
|
9
9
|
desc "add [FILES]", "Add and Commit new files"
|
10
|
-
def add(files)
|
11
|
-
|
12
|
-
puts "
|
10
|
+
def add(*files)
|
11
|
+
file_list = files * ' '
|
12
|
+
puts "dssx add #{file_list}"
|
13
|
+
puts "=> dssc ci -new #{file_list}"
|
13
14
|
end
|
14
15
|
|
15
16
|
|
16
17
|
desc "remove [PATH]", "Remove file/folder from repository"
|
17
|
-
def remove(path=Dir.pwd)
|
18
|
-
|
19
|
-
puts "
|
18
|
+
def remove(*path=Dir.pwd)
|
19
|
+
path_list = path * ' '
|
20
|
+
puts "dssx rm #{path_list}"
|
21
|
+
puts "=> dssc retire #{path_list}"
|
20
22
|
end
|
21
23
|
|
22
24
|
desc "rm [PATH]", "Alias for remove"
|
23
|
-
def rm(path=Dir.pwd)
|
25
|
+
def rm(*path=Dir.pwd)
|
24
26
|
invoke :remove
|
25
27
|
end
|
26
28
|
|
@@ -37,15 +39,16 @@ module Dssx
|
|
37
39
|
|
38
40
|
option :r
|
39
41
|
desc "update [PATH]", "Update to latest repository version"
|
40
|
-
def update(path=Dir.pwd)
|
41
|
-
|
42
|
-
|
42
|
+
def update(*path=Dir.pwd)
|
43
|
+
path_list = path * ' '
|
44
|
+
puts "dssx update #{path_list}"
|
45
|
+
cmd = "dssc populate -recursive -replace -unify #{path_list}"
|
43
46
|
cmd = cmd + " --version #{options[:r]}" if options[:r]
|
44
47
|
puts "=> #{cmd}"
|
45
48
|
end
|
46
49
|
|
47
50
|
desc "up [PATH]", "Alias for update"
|
48
|
-
def up(path=Dir.pwd)
|
51
|
+
def up(*path=Dir.pwd)
|
49
52
|
invokee :update
|
50
53
|
end
|
51
54
|
|
@@ -55,20 +58,22 @@ module Dssx
|
|
55
58
|
end
|
56
59
|
|
57
60
|
desc "commit[PATH]", "Commit changes to repository"
|
58
|
-
def commit(path=Dir.pwd)
|
59
|
-
|
60
|
-
puts "
|
61
|
+
def commit(*path=Dir.pwd)
|
62
|
+
path_list = path * ' '
|
63
|
+
puts "dssx commit #{path_list}"
|
64
|
+
puts "=> dssc ci #{path_list}"
|
61
65
|
end
|
62
66
|
|
63
67
|
desc "ci [PATH]", "Alias for commit"
|
64
|
-
def ci(path=Dir.pwd)
|
68
|
+
def ci(*path=Dir.pwd)
|
65
69
|
invoke :commit
|
66
70
|
end
|
67
71
|
|
68
72
|
desc "lock [PATH]", "Lock file"
|
69
|
-
def lock(path=Dir.pwd)
|
70
|
-
|
71
|
-
puts "
|
73
|
+
def lock(*path=Dir.pwd)
|
74
|
+
path_list = path * ' '
|
75
|
+
puts "dssx lock #{path_list}"
|
76
|
+
puts "=> dssc co -lock -nocomment #{path_list}"
|
72
77
|
end
|
73
78
|
|
74
79
|
|
@@ -82,7 +87,7 @@ module Dssx
|
|
82
87
|
|
83
88
|
desc "move [PATH]", "Move a file"
|
84
89
|
def move(path=Dir.pwd)
|
85
|
-
puts "dssx
|
90
|
+
puts "dssx move #{path}"
|
86
91
|
puts " NOT IMPLEMENTED"
|
87
92
|
#puts "=> dssc vhistory #{path}"
|
88
93
|
end
|
@@ -95,9 +100,10 @@ module Dssx
|
|
95
100
|
|
96
101
|
|
97
102
|
desc "revert [PATH]", "Revert file back to previous version"
|
98
|
-
def revert(path=Dir.pwd)
|
99
|
-
|
100
|
-
puts "
|
103
|
+
def revert(*path=Dir.pwd)
|
104
|
+
path_list = path * ' '
|
105
|
+
puts "dssx revert #{path_list}"
|
106
|
+
puts "=> dssc cancel -force #{path_list}"
|
101
107
|
end
|
102
108
|
|
103
109
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
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.3.a
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Morgan Prior
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: thor
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -54,27 +51,26 @@ files:
|
|
54
51
|
- spec/spec_helper.rb
|
55
52
|
homepage: ''
|
56
53
|
licenses: []
|
54
|
+
metadata: {}
|
57
55
|
post_install_message:
|
58
56
|
rdoc_options: []
|
59
57
|
require_paths:
|
60
58
|
- lib
|
61
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
60
|
requirements:
|
64
61
|
- - ! '>='
|
65
62
|
- !ruby/object:Gem::Version
|
66
63
|
version: '0'
|
67
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
65
|
requirements:
|
70
|
-
- - ! '
|
66
|
+
- - ! '>'
|
71
67
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
68
|
+
version: 1.3.1
|
73
69
|
requirements: []
|
74
70
|
rubyforge_project:
|
75
|
-
rubygems_version:
|
71
|
+
rubygems_version: 2.2.2
|
76
72
|
signing_key:
|
77
|
-
specification_version:
|
73
|
+
specification_version: 4
|
78
74
|
summary: ruby library for dssc revision control system.
|
79
75
|
test_files:
|
80
76
|
- spec/dssx_spec.rb
|