-
-
Save richdownie/a388709e7fda550106c080d4ce46e4e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Set < Thor | |
include Thor::Actions | |
no_tasks do | |
def copy_environment(new_environment) | |
run("cp features/support/envs/env.rb.#{new_environment} features/support/env.rb") | |
end | |
end | |
desc "Chrome", "Use CHROME" | |
def chrome | |
puts "Use CHROME" | |
copy_environment("chrome") | |
end | |
desc "Edit", "Use CHROME with pry" | |
def edit | |
puts "Use CHROME with pry" | |
copy_environment("edit") | |
end | |
desc "Firefox", "Use FIREFOX" | |
def firefox | |
puts "Use FIREFOX Browser" | |
copy_environment("firefox") | |
end | |
desc "Safari", "Use SAFARI" | |
def safari | |
puts "Use SAFARI Browser" | |
copy_environment("safari") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment