Skip to content

Commit

Permalink
Merge pull request #5 from jasonblewis/fileutils
Browse files Browse the repository at this point in the history
added require fileutils and change File.copy to FileUtils.copy
  • Loading branch information
hovsater committed May 27, 2013
2 parents 1d9444d + 0c6ade2 commit 6035d77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/ssh-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
require 'fileutils'
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'ssh-config'))

# ssh-config - Manipulate config values in the .ssh/config file.
Expand Down
2 changes: 1 addition & 1 deletion lib/config_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def save
end

def backup
File.copy(File.expand_path("~/.ssh/config"), File.expand_path("~/.ssh/config~"))
FileUtils.copy(File.expand_path("~/.ssh/config"), File.expand_path("~/.ssh/config~"))
end

private
Expand Down

0 comments on commit 6035d77

Please sign in to comment.