quicksync 0.0.7.1 → 0.0.7.2

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.
@@ -12,7 +12,6 @@ module QuickSync
12
12
  end
13
13
 
14
14
  def set_sync_type(sync_type)
15
- puts "sync_type value set to #{sync_type.to_sym}"
16
15
  @sync_type = sync_type.to_sym
17
16
  end
18
17
 
@@ -57,17 +56,17 @@ module QuickSync
57
56
  def sync(src,dest,options={})
58
57
  parse_options(src,dest,options)
59
58
  cmd = generate_cmd
60
- logger.info "quicksync command:\n #{cmd}"
59
+ # logger.info "quicksync command:\n #{cmd}"
61
60
  if run_method == :execute
62
- logger.info "RSync.pull_from: about to execute command"
63
- # system(cmd)
61
+ logger.info " RSync.pull_from: executing command:\n# {cmd}"
62
+ system(cmd)
64
63
  end
65
64
 
66
65
  return cmd
67
66
  end
68
67
 
69
68
  def to_str
70
- out = "QuickSync.to_str:\n"
69
+ out = "RSync.to_str:\n"
71
70
  out += " :src=#{src}\n"
72
71
  out += " :dest=#{dest}\n"
73
72
  out += " :dest_fully_qualified=#{dest_fully_qualified}\n"
@@ -104,7 +103,7 @@ module QuickSync
104
103
  @settings = options.length > 0 && ! options[:settings].nil? ? default_options[:settings].merge(options[:settings]): default_options[:settings]
105
104
  @run_method = options.length > 0 && ! options[:run_method].nil? ? options[:run_method]: default_options[:run_method]
106
105
 
107
- logger.important " parse_options: #{self.to_str}"
106
+ # logger.important " parse_options: #{self.to_str}"
108
107
 
109
108
  end
110
109
 
@@ -125,12 +124,11 @@ module QuickSync
125
124
  end
126
125
 
127
126
  def generate_cmd
128
- logger.debug "QuickSync.generated_cmd: method called"
127
+
129
128
  cmd = "#{settings[:rsync_app]} #{copy_options_to_s}"
130
129
  cmd << " #{include_to_s}" if !include.nil? && include.any?
131
130
  cmd << " #{exclude_to_s}" if !exclude.nil? && exclude.any?
132
131
  cmd << " #{src_fully_qualified}/ #{dest_fully_qualified}"
133
-
134
132
  return cmd
135
133
  end
136
134
 
@@ -1,3 +1,3 @@
1
1
  module QuickSync
2
- VERSION = "0.0.7.1"
2
+ VERSION = "0.0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quicksync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.1
4
+ version: 0.0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  version: '0'
230
230
  segments:
231
231
  - 0
232
- hash: -2741976033233478250
232
+ hash: 768488005526636767
233
233
  required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  none: false
235
235
  requirements:
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: -2741976033233478250
241
+ hash: 768488005526636767
242
242
  requirements: []
243
243
  rubyforge_project:
244
244
  rubygems_version: 1.8.24