rbfs 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbfs/command.rb +1 -5
- data/lib/rbfs/logger.rb +8 -4
- data/lib/rbfs/version.rb +1 -1
- metadata +7 -7
data/lib/rbfs/command.rb
CHANGED
@@ -42,11 +42,7 @@ module Rbfs
|
|
42
42
|
logger.info "#{host}: #{result[:exitcode].to_i}"
|
43
43
|
end
|
44
44
|
result[:output].split("\n").each do |line|
|
45
|
-
|
46
|
-
logger.error " | #{line}"
|
47
|
-
else
|
48
|
-
logger.info " | #{line}"
|
49
|
-
end
|
45
|
+
logger.puts " | #{line}"
|
50
46
|
end
|
51
47
|
success = false if result[:exitcode] != 0
|
52
48
|
end
|
data/lib/rbfs/logger.rb
CHANGED
@@ -7,20 +7,24 @@ module Rbfs
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def info(msg)
|
10
|
-
puts "\033[0;32m#{msg}\033[
|
10
|
+
puts "\033[0;32m#{msg}\033[00m"
|
11
|
+
end
|
12
|
+
|
13
|
+
def puts(msg)
|
14
|
+
puts "#{msg}"
|
11
15
|
end
|
12
16
|
|
13
17
|
def error(msg)
|
14
|
-
puts "\033[0;31m#{msg}\033[
|
18
|
+
puts "\033[0;31m#{msg}\033[00m"
|
15
19
|
end
|
16
20
|
|
17
21
|
def critical(msg)
|
18
|
-
puts "\033[0;31m#{msg}\033[
|
22
|
+
puts "\033[0;31m#{msg}\033[00m"
|
19
23
|
exit 1
|
20
24
|
end
|
21
25
|
|
22
26
|
def notice(msg)
|
23
|
-
puts "\033[0;33m#{msg}\033[
|
27
|
+
puts "\033[0;33m#{msg}\033[00m"
|
24
28
|
end
|
25
29
|
end
|
26
30
|
end
|
data/lib/rbfs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-07-18 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &16038340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *16038340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &16037660 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *16037660
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &16036940 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *16036940
|
47
47
|
description: Ruby File Sync
|
48
48
|
email:
|
49
49
|
- jbussdieker@gmail.com
|