dotme 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dotme/dsl.rb +4 -4
- data/lib/dotme/incubators/file.rb +1 -1
- data/lib/dotme/incubators/folder.rb +2 -2
- data/lib/dotme/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODMyZTVhMTQ4MGFhMjcxYjdmOWM3NGRiZWJlMDg1NjY3NDAzYzJiNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTFiYTFlYWIxYWJiMjE2ZGYyNjU3NTI0NDlkMzMzMWE4N2ZkY2FlZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDg5OWVjMjZlYzExNTZjOWQyZWMzNjY4MTE0ZjY4NmU3OTczZDBkODBiNjBj
|
10
|
+
NzdkODhmMGYwMDMyMzZhNjkxYTRhNTdhMDc2NDE0NmZlM2Y2MzJmNDkwNmZi
|
11
|
+
NTUyZDM1ZDcxNDNlNzdhMmY1YmQ3Mjk0NGM5NjY4NDI2OTViMjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTk2YThjYzBjM2NlZmEyNmQ0NTBiNzBlMWI2NDFkYTdiNjFiMWYxZWI3MjJl
|
14
|
+
MzhmYWQ5ZTk1ZmYwMzQxMjEwMDRmZWE1YWRmM2I0MzRiYjJiNDQ4NGZlYTQy
|
15
|
+
MTJhYTEzODEzZmVjMDkxNDRiNzQzOWJlMTkzOTZjNmQ0ODI4MmE=
|
data/lib/dotme/dsl.rb
CHANGED
@@ -29,6 +29,10 @@ module DotMe
|
|
29
29
|
File.symlink what, where
|
30
30
|
end
|
31
31
|
|
32
|
+
def _git_clone( repo, where )
|
33
|
+
system "git clone #{repo} \"#{where}\""
|
34
|
+
end
|
35
|
+
|
32
36
|
def method_missing( name, *args )
|
33
37
|
name = "_#{name}"
|
34
38
|
if respond_to? name
|
@@ -39,10 +43,6 @@ module DotMe
|
|
39
43
|
end
|
40
44
|
end
|
41
45
|
|
42
|
-
def git_clone( repo, where )
|
43
|
-
system "git clone #{repo} \"#{where}\""
|
44
|
-
end
|
45
|
-
|
46
46
|
def sh( cmd )
|
47
47
|
system cmd
|
48
48
|
end
|
@@ -4,11 +4,11 @@ module DotMe
|
|
4
4
|
begin
|
5
5
|
require 'git'
|
6
6
|
|
7
|
-
{ :git_clone => Git.open( @path ).config['remote.origin.url'], :to => @relative }
|
7
|
+
{ :git_clone => Git.open( @path ).config['remote.origin.url'], :to => ::File.join( '~', @relative ) }
|
8
8
|
rescue
|
9
9
|
FileUtils.cp_r @path, ::File.join( to, @basename )
|
10
10
|
|
11
|
-
{ :link => @basename, :to => @relative }
|
11
|
+
{ :link => @basename, :to => ::File.join( '~', @relative ) }
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
data/lib/dotme/version.rb
CHANGED