joekhoobyar-capsaicin 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/capsaicin/files/remote.rb +20 -1
- metadata +3 -3
data/VERSION.yml
CHANGED
@@ -17,6 +17,25 @@ module Capsaicin
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
def chmod(mode, list, options={})
|
21
|
+
_r 'chmod', Array(list).unshift(mode.to_s(8))
|
22
|
+
end
|
23
|
+
|
24
|
+
def chmod_R(mode, list, options={})
|
25
|
+
_r 'chmod -R', Array(list).unshift(mode.to_s(8))
|
26
|
+
end
|
27
|
+
|
28
|
+
def install(src, dest, options={})
|
29
|
+
src = Array(src)
|
30
|
+
case options[:mode]
|
31
|
+
when Fixnum
|
32
|
+
src << '-m' << options[:mode].to_s(8)
|
33
|
+
when String
|
34
|
+
src << '-m' << options[:mode]
|
35
|
+
end
|
36
|
+
_r 'install', src.push(dest)
|
37
|
+
end
|
38
|
+
|
20
39
|
FILE_TESTS.each do |m,t|
|
21
40
|
class_eval <<-EODEF
|
22
41
|
def #{m}(a, options={})
|
@@ -103,7 +122,7 @@ module Capsaicin
|
|
103
122
|
end
|
104
123
|
|
105
124
|
def _q(*list)
|
106
|
-
list.map { |l| "'#{l.gsub("'", "\\'")}'" }.join ' '
|
125
|
+
list.map { |l| "'#{l.to_s.gsub("'", "\\'")}'" }.join ' '
|
107
126
|
end
|
108
127
|
|
109
128
|
def _via
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joekhoobyar-capsaicin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Khoobyar
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- lib/capsaicin/service/windows.rb
|
60
60
|
- lib/capsaicin/sys.rb
|
61
61
|
- lib/capsaicin/ui.rb
|
62
|
-
has_rdoc:
|
62
|
+
has_rdoc: false
|
63
63
|
homepage: http://github.com/joekhoobyar/capsaicin
|
64
64
|
post_install_message:
|
65
65
|
rdoc_options:
|