Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
215 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.9.3 |
Empty file.
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,5 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'geordi' | ||
|
||
Geordi::CLI.start |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'geordi/cli' |
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,25 @@ | ||
require 'thor' | ||
require 'rake' | ||
load File.expand_path('../../tasks/geordi.rake', __FILE__) | ||
|
||
module Geordi | ||
class CLI < Thor | ||
|
||
desc 'setup [GIT_URL]', 'Setup a project for the first time' | ||
def setup(git_url = nil) | ||
Rake::Task['geordi:setup'].invoke | ||
end | ||
|
||
desc 'update', 'Make a project up to date' | ||
def update | ||
Rake::Task['geordi:update'].invoke | ||
end | ||
|
||
desc 'dev_server', 'Start a development server' | ||
option :port, :type => :numeric, :default => 3000 | ||
def dev_server | ||
|
||
end | ||
|
||
end | ||
end |
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,3 +1,3 @@ | ||
module Geordi | ||
VERSION = '0.17.4' | ||
VERSION = '0.18.0' | ||
end |
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,69 @@ | ||
require 'rake' | ||
require 'bundler' | ||
|
||
namespace :geordi do | ||
|
||
desc 'Setup a project for the first time' | ||
task :setup => [:create_databases, :update] do | ||
success 'Successfully set up the project.' | ||
end | ||
|
||
desc 'Update a project' | ||
task :update do | ||
|
||
end | ||
|
||
desc 'Create databases' | ||
task :create_databases => ['config/database.yml', :bundle] do | ||
if File.exists?('config/database.yml') | ||
announce 'Creating databases' | ||
Bundler.clean_system 'bundle exec rake db:create:all' | ||
end | ||
end | ||
|
||
desc 'Create database.yml' | ||
file 'config/database.yml' do |file_task| | ||
sample_yml = 'config/database.sample.yml' | ||
|
||
if File.exists?(sample_yml) | ||
announce 'Creating ' + file_task.name | ||
print 'Please enter your DB password now: ' | ||
db_password = STDIN.gets.strip | ||
|
||
sample = File.read(sample_yml) | ||
real = sample.gsub(/password:.*$/, "password: #{db_password}") | ||
File.open(file_task.name, 'w') { |f| f.write(real) } | ||
|
||
success "Successfully created #{file_task.name}." | ||
end | ||
end | ||
|
||
desc 'Bundle install' | ||
task :bundle do | ||
if File.exists?('Gemfile') and !quiet('bundle check') | ||
announce 'Bundle install' | ||
system 'bundle install' | ||
end | ||
end | ||
|
||
private | ||
|
||
def quiet(command) | ||
system("#{command} &>/dev/null") | ||
end | ||
|
||
def rvm_installed? | ||
quiet('rvm -v') | ||
end | ||
|
||
def announce(text) | ||
message = "\n# #{text}" | ||
puts "\e[4;34m#{message}\e[0m" | ||
end | ||
|
||
def success(text) | ||
message = "\n#{text}" | ||
puts "\e[32m#{message}\e[0m" | ||
end | ||
|
||
end |
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,110 @@ | ||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ | ||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ | ||
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/ | ||
!_TAG_PROGRAM_NAME Exuberant Ctags // | ||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ | ||
!_TAG_PROGRAM_VERSION 5.8 // | ||
CLI lib/geordi/cli.rb /^ class CLI < Thor$/;" c class:Geordi | ||
Capistrano lib/geordi/capistrano.rb /^ module Capistrano$/;" m class:Geordi | ||
Config lib/geordi/capistrano.rb /^ class Config$/;" c class:Geordi.Capistrano | ||
Cucumber lib/geordi/cuc.rb /^ class Cucumber$/;" c class:Geordi | ||
DumpLoader lib/geordi/dump_loader.rb /^class DumpLoader$/;" c | ||
FirefoxForSelenium lib/geordi/firefox_for_selenium.rb /^ module FirefoxForSelenium$/;" m class:Geordi | ||
Geordi lib/geordi/capistrano.rb /^module Geordi$/;" m | ||
Geordi lib/geordi/cli.rb /^module Geordi$/;" m | ||
Geordi lib/geordi/cuc.rb /^module Geordi$/;" m | ||
Geordi lib/geordi/firefox_for_selenium.rb /^module Geordi$/;" m | ||
Geordi lib/geordi/gitpt.rb /^module Geordi$/;" m | ||
Geordi lib/geordi/version.rb /^module Geordi$/;" m | ||
Gitpt lib/geordi/gitpt.rb /^ class Gitpt$/;" c class:Geordi | ||
Installer lib/geordi/firefox_for_selenium.rb /^ class Installer$/;" c class:Geordi.FirefoxForSelenium | ||
PathFromConfig lib/geordi/firefox_for_selenium.rb /^ class PathFromConfig$/;" c class:Geordi.FirefoxForSelenium | ||
argv lib/geordi/cuc.rb /^ def argv$/;" f class:Geordi.Cucumber | ||
binary lib/geordi/firefox_for_selenium.rb /^ def binary$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
binary lib/geordi/firefox_for_selenium.rb /^ def self.binary(version, name = "firefox")$/;" F class:Geordi.FirefoxForSelenium | ||
bold lib/geordi/gitpt.rb /^ def bold(string)$/;" f class:Geordi.Gitpt | ||
capture_stderr lib/geordi/cuc.rb /^ def capture_stderr$/;" f class:Geordi.find_all_features_recursively | ||
catching_errors lib/geordi/capistrano.rb /^ def catching_errors(&block)$/;" f class:Geordi | ||
check_if_run_before lib/geordi/firefox_for_selenium.rb /^ def check_if_run_before$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
choose_dump_file lib/geordi/dump_loader.rb /^ def choose_dump_file$/;" f class:DumpLoader | ||
choose_story lib/geordi/gitpt.rb /^ def choose_story$/;" f class:Geordi.Gitpt.load_projects | ||
command_line_args lib/geordi/cuc.rb /^ def command_line_args$/;" f class:Geordi.Cucumber | ||
command_line_features lib/geordi/cuc.rb /^ def command_line_features$/;" f class:Geordi.Cucumber | ||
config lib/geordi/capistrano.rb /^ def config$/;" f class:Geordi | ||
configure_old_firefox lib/geordi/firefox_for_selenium.rb /^ def configure_old_firefox$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
consolidate_rerun_txt_files lib/geordi/cuc.rb /^ def consolidate_rerun_txt_files$/;" f class:Geordi.Cucumber | ||
create_separate_profile lib/geordi/firefox_for_selenium.rb /^ def create_separate_profile$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
db_console_command lib/geordi/dump_loader.rb /^ def db_console_command$/;" f class:DumpLoader | ||
default_version lib/geordi/firefox_for_selenium.rb /^ def default_version$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig | ||
dev_server lib/geordi/cli.rb /^ def dev_server$/;" f class:Geordi.CLI | ||
die lib/geordi/firefox_for_selenium.rb /^ def die(message)$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
download_firefox lib/geordi/firefox_for_selenium.rb /^ def download_firefox$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
download_url lib/geordi/firefox_for_selenium.rb /^ def download_url$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
dumps_dir lib/geordi/dump_loader.rb /^ def dumps_dir$/;" f class:DumpLoader | ||
env lib/geordi/capistrano.rb /^ def env$/;" f class:Geordi.Capistrano.Config | ||
escape_shell_args lib/geordi/cuc.rb /^ def escape_shell_args(*args)$/;" f class:Geordi.Cucumber | ||
execute lib/geordi/dump_loader.rb /^ def execute$/;" f class:DumpLoader | ||
execute! lib/geordi/dump_loader.rb /^ def execute!$/;" f class:DumpLoader | ||
execute_command lib/geordi/firefox_for_selenium.rb /^ def execute_command(cmd)$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
features_can_run_with_parallel_tests? lib/geordi/cuc.rb /^ def features_can_run_with_parallel_tests?(features)$/;" f class:Geordi.find_all_features_recursively | ||
features_to_run lib/geordi/cuc.rb /^ def features_to_run$/;" f class:Geordi.Cucumber | ||
find_all_features_recursively lib/geordi/cuc.rb /^ def find_all_features_recursively(files_or_dirs)$/;" f class:Geordi | ||
find_project_root! lib/geordi/capistrano.rb /^ def find_project_root!$/;" f class:Geordi.Capistrano.Config | ||
get_dump_file lib/geordi/dump_loader.rb /^ def get_dump_file$/;" f class:DumpLoader | ||
get_version lib/geordi/firefox_for_selenium.rb /^ def get_version$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig | ||
hello lib/geordi/gitpt.rb /^ def hello$/;" f class:Geordi.Gitpt | ||
highlight lib/geordi/gitpt.rb /^ def highlight(string)$/;" f class:Geordi.Gitpt | ||
initialize lib/geordi/capistrano.rb /^ def initialize(stage)$/;" f class:Geordi.Capistrano.Config | ||
initialize lib/geordi/dump_loader.rb /^ def initialize(argv)$/;" f class:DumpLoader | ||
initialize lib/geordi/gitpt.rb /^ def initialize$/;" f class:Geordi.Gitpt | ||
install lib/geordi/firefox_for_selenium.rb /^ def self.install$/;" F class:Geordi.FirefoxForSelenium | ||
kkthxbb lib/geordi/firefox_for_selenium.rb /^ def kkthxbb$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
launch_vnc_viewer lib/geordi/cuc.rb /^ def launch_vnc_viewer$/;" f class:Geordi.Cucumber | ||
left lib/geordi/gitpt.rb /^ def left(string)$/;" f class:Geordi.Gitpt | ||
load_capistrano_config lib/geordi/capistrano.rb /^ def load_capistrano_config$/;" f class:Geordi.Capistrano.Config | ||
load_projects lib/geordi/gitpt.rb /^ def load_projects$/;" f class:Geordi.Gitpt | ||
load_settings lib/geordi/gitpt.rb /^ def load_settings$/;" f class:Geordi.Gitpt | ||
loading lib/geordi/gitpt.rb /^ def loading(message, &block)$/;" f class:Geordi.Gitpt | ||
original_binary lib/geordi/firefox_for_selenium.rb /^ def original_binary$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
parallel_execution_command lib/geordi/cuc.rb /^ def parallel_execution_command$/;" f class:Geordi.Cucumber | ||
parallel_tests_available? lib/geordi/cuc.rb /^ def parallel_tests_available?$/;" f class:Geordi.find_all_features_recursively | ||
parallel_tests_version lib/geordi/cuc.rb /^ def parallel_tests_version$/;" f class:Geordi.find_all_features_recursively | ||
parse_version lib/geordi/firefox_for_selenium.rb /^ def parse_version$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
patch_old_firefox lib/geordi/firefox_for_selenium.rb /^ def patch_old_firefox$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
path lib/geordi/capistrano.rb /^ def path$/;" f class:Geordi.Capistrano.Config | ||
path lib/geordi/firefox_for_selenium.rb /^ def path$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
path lib/geordi/firefox_for_selenium.rb /^ def path$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig | ||
path lib/geordi/firefox_for_selenium.rb /^ def self.path(version)$/;" F class:Geordi.FirefoxForSelenium | ||
path_from_config lib/geordi/firefox_for_selenium.rb /^ def self.path_from_config$/;" F class:Geordi.FirefoxForSelenium | ||
primary_server lib/geordi/capistrano.rb /^ def primary_server$/;" f class:Geordi.Capistrano.Config | ||
puts_info lib/geordi/dump_loader.rb /^ def puts_info(msg = "")$/;" f class:DumpLoader | ||
request_settings lib/geordi/gitpt.rb /^ def request_settings$/;" f class:Geordi.Gitpt | ||
require_project_rakefile lib/geordi/cli.rb /^ def require_project_rakefile$/;" f class:Geordi.CLI | ||
rerun_txt_features lib/geordi/cuc.rb /^ def rerun_txt_features$/;" f class:Geordi.Cucumber | ||
restore_env lib/geordi/cuc.rb /^ def restore_env$/;" f class:Geordi.Cucumber | ||
run lib/geordi/cuc.rb /^ def run$/;" f class:Geordi.Cucumber | ||
run lib/geordi/firefox_for_selenium.rb /^ def run$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
run lib/geordi/firefox_for_selenium.rb /^ def run$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig | ||
run lib/geordi/gitpt.rb /^ def run$/;" f class:Geordi.Gitpt | ||
run_firefox_for_selenium lib/geordi/firefox_for_selenium.rb /^ def run_firefox_for_selenium(args = '')$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
say_hello lib/geordi/firefox_for_selenium.rb /^ def say_hello$/;" f class:Geordi.FirefoxForSelenium.Installer | ||
select_server lib/geordi/capistrano.rb /^ def select_server$/;" f class:Geordi | ||
serial_execution_command lib/geordi/cuc.rb /^ def serial_execution_command$/;" f class:Geordi.Cucumber | ||
servers lib/geordi/capistrano.rb /^ def servers$/;" f class:Geordi.Capistrano.Config | ||
settings_valid? lib/geordi/gitpt.rb /^ def settings_valid?$/;" f class:Geordi.Gitpt | ||
setup lib/geordi/cli.rb /^ def setup(git_url = nil)$/;" f class:Geordi.CLI | ||
setup_vnc lib/geordi/cuc.rb /^ def setup_vnc$/;" f class:Geordi.find_all_features_recursively | ||
shell lib/geordi/capistrano.rb /^ def shell$/;" f class:Geordi.Capistrano.Config | ||
shell_for lib/geordi/capistrano.rb /^ def shell_for(command, options = {})$/;" f class:Geordi | ||
show_features_to_run lib/geordi/cuc.rb /^ def show_features_to_run$/;" f class:Geordi.Cucumber | ||
source_dump lib/geordi/dump_loader.rb /^ def source_dump(dump)$/;" f class:DumpLoader | ||
spinner_available? lib/geordi/cuc.rb /^ def spinner_available?$/;" f class:Geordi.find_all_features_recursively | ||
stored lib/geordi/gitpt.rb /^ def stored$/;" f class:Geordi.Gitpt | ||
system_firefox lib/geordi/firefox_for_selenium.rb /^ def system_firefox$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig | ||
try_and_start_vnc lib/geordi/cuc.rb /^ def try_and_start_vnc$/;" f class:Geordi.find_all_features_recursively | ||
update lib/geordi/cli.rb /^ def update$/;" f class:Geordi.CLI | ||
use_firefox_for_selenium lib/geordi/cuc.rb /^ def use_firefox_for_selenium$/;" f class:Geordi.Cucumber | ||
use_parallel_tests? lib/geordi/cuc.rb /^ def use_parallel_tests?$/;" f class:Geordi.find_all_features_recursively | ||
user lib/geordi/capistrano.rb /^ def user$/;" f class:Geordi.Capistrano.Config | ||
validate_install lib/geordi/firefox_for_selenium.rb /^ def validate_install$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig | ||
version_from_cuc_file lib/geordi/firefox_for_selenium.rb /^ def version_from_cuc_file$/;" f class:Geordi.FirefoxForSelenium.PathFromConfig |