-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* separate script/refactor as a file
* remove unsed files
- Loading branch information
Showing
9 changed files
with
30 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
Script-refactor | ||
script/refactor | ||
=============== | ||
|
||
Introduction goes here. | ||
First of all, if you don't install this via: | ||
|
||
script/plugin install git://github.com/hiroshi/script-refactor.git | ||
|
||
Example | ||
======= | ||
You may have no script/refactor. If so, do install.rb by hand: | ||
|
||
Example goes here. | ||
ruby vendor/plugins/script-refactor/install.rb | ||
|
||
Next, just type: | ||
|
||
Copyright (c) 2009 [name of plugin creator], released under the MIT license | ||
script/refactor | ||
|
||
You will see the usage and other information of the script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# install script/refactor | ||
open(File.dirname(__FILE__) + "/../../../script/refactor", "w") do |file| | ||
file.print <<-SCRIPT | ||
#!/usr/bin/env ruby | ||
require File.dirname(__FILE__) + '/../vendor/plugins/script_refactor/lib/script_refactor' | ||
SCRIPT | ||
file.chmod(0755) # make executable | ||
end | ||
require "fileutils" | ||
file_name = "script/refactor" | ||
puts " create #{file_name}" | ||
dst = File.dirname(__FILE__) + "/../../../#{file_name}" | ||
src = File.dirname(__FILE__) + "/#{file_name}" | ||
# open(path, "w") do |file| | ||
# file.print <<-SCRIPT | ||
# #!/usr/bin/env ruby | ||
# require File.dirname(__FILE__) + '/../vendor/plugins/script_refactor/lib/script_refactor' | ||
# SCRIPT | ||
# file.chmod(0755) # make it executable | ||
# end | ||
FileUtils.copy(src, dst) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env ruby | ||
require File.dirname(__FILE__) + '/../vendor/plugins/script-refactor/lib/script_refactor' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# Uninstall hook code here | ||
# uninstall script/refactor | ||
require "fileutils" | ||
file_name = "script/refactor" | ||
puts " rm #{file_name}" | ||
FileUtils.rm File.dirname(__FILE__) + "/../../../#{file_name}" |