Skip to content

Commit

Permalink
Merge pull request sprinkle-tool#76 from duksis/patch-1
Browse files Browse the repository at this point in the history
Fixing indentation
  • Loading branch information
crafterm committed Apr 6, 2013
2 parents f29bd70 + a6b7fc6 commit 2c17967
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/sprinkle/actors/local.rb
Expand Up @@ -25,13 +25,11 @@ def process(name, commands, roles, suppress_and_return_failures = false) #:nodoc
return true
end

def transfer(name, source, destination, roles, recursive = true, suppress_and_return_failures = false)
if recursive
flags = "-R "
end

system "cp #{flags}#{source} #{destination}"
end
def transfer(name, source, destination, roles, recursive = true, suppress_and_return_failures = false)
flags = "-R " if recursive

system "cp #{flags}#{source} #{destination}"
end
end
end
end

0 comments on commit 2c17967

Please sign in to comment.