ro_commands 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -0
- data/Rakefile +4 -14
- data/bin/ro +2 -31
- data/bin/ro_client +2 -5
- data/bin/ro_server +2 -5
- data/bin/rubyscripts +6 -0
- data/{lib/ro_commands/core_ext/symbol.rb → config/boot.rb} +0 -0
- data/config/rorc.rb +66 -3
- data/lib/bash_builder.rb +18 -9
- data/lib/bash_builder_helper.rb +3 -3
- data/lib/bash_debug.rb +4 -2
- data/lib/bash_templates/crawler.sh +1 -0
- data/lib/bash_templates/file.sh +1 -1
- data/lib/bash_templates/git.sh +3 -0
- data/lib/{ro_commands/core_ext/thor.rb → bash_templates/grep.sh} +0 -0
- data/lib/bash_templates/misc.sh +25 -8
- data/{test/dummy/public/favicon.ico → lib/bash_templates/mysql.sh} +0 -0
- data/lib/bash_templates/process.sh +0 -0
- data/lib/bash_templates/rails.sh +10 -0
- data/lib/bash_templates/ruby.sh +2 -1
- data/lib/bash_templates/rubymine_idea.sh +38 -9
- data/lib/bash_templates/shortcuts.sh +12 -1
- data/lib/bash_templates/video.sh +2 -3
- data/lib/builder_templates/set_envs.erb +2 -1
- data/lib/builder_templates/working_project_bash.erb +3 -0
- data/lib/deps.rb +13 -0
- data/lib/deps_methods.rb +114 -0
- data/lib/drb/client.rb +7 -28
- data/lib/drb/server.rb +13 -27
- data/lib/dsl/ro_file.rb +23 -0
- data/lib/guard_helpers/base_helper.rb +91 -0
- data/lib/guard_helpers/basic_helper.rb +132 -0
- data/lib/guard_helpers/erb_helper.rb +52 -0
- data/lib/guard_helpers/gem_helper.rb +41 -0
- data/lib/guard_helpers/initd_helper.rb +126 -0
- data/lib/guard_helpers/md_helper.rb +44 -0
- data/lib/guard_helpers/mid_mod_class_methods_helper.rb +45 -0
- data/lib/rails_builder_helper.rb +10 -12
- data/lib/ro_cells.rb +3 -0
- data/lib/ro_cells/base.rb +6 -0
- data/lib/ro_cells/gem.rb +29 -0
- data/lib/ro_commands.rb +3 -10
- data/lib/ro_commands/base.rb +49 -25
- data/lib/ro_commands/crawler.rb +53 -0
- data/lib/ro_commands/file_actions.rb +45 -1
- data/lib/ro_commands/gem.rb +16 -0
- data/lib/ro_commands/generate.rb +13 -1
- data/lib/ro_commands/generators/base_generator.rb +40 -14
- data/lib/ro_commands/generators/ex.rb +18 -16
- data/lib/ro_commands/generators/rails_generator.rb +37 -0
- data/lib/ro_commands/generators/rails_new_app.rb +23 -0
- data/lib/ro_commands/generators/rails_templates/Gemfile.erb +57 -0
- data/lib/ro_commands/generators/rails_templates/rodebug.erb +23 -0
- data/lib/ro_commands/generators/rails_templates/try.erb +1 -0
- data/lib/ro_commands/generators/rodebug.rb +37 -0
- data/lib/ro_commands/generators/spec_file.rb +49 -27
- data/lib/ro_commands/generators/templates/ex.erb +1 -28
- data/lib/ro_commands/generators/templates/spec.erb +0 -3
- data/lib/ro_commands/info.rb +5 -3
- data/lib/ro_commands/init.rb +40 -0
- data/lib/ro_commands/misc.rb +9 -0
- data/lib/ro_commands/navigate.rb +52 -28
- data/lib/ro_commands/processes.rb +1 -1
- data/lib/ro_commands/rails.rb +51 -34
- data/lib/ro_commands/refactor.rb +2 -0
- data/lib/ro_commands/ro_gist.rb +39 -0
- data/lib/ro_commands/shortcuts.rb +63 -14
- data/lib/ro_commands/templates/Gemfile.tt +1 -0
- data/lib/ro_commands/try.rb +2 -2
- data/lib/ro_commands/typography.rb +12 -0
- data/lib/ro_commands/version.rb +2 -2
- data/lib/ro_commands/video.rb +6 -0
- data/lib/ro_commands/zeus_templates/custom_plan.rb +11 -16
- data/lib/ro_commands/zeus_templates/zeus.json +10 -6
- data/lib/ro_commands_bin.rb +34 -0
- data/lib/ro_core_ext.rb +6 -0
- data/lib/ro_core_ext/array.rb +22 -0
- data/lib/ro_core_ext/hash.rb +21 -0
- data/lib/ro_core_ext/misc_helper.rb +16 -0
- data/lib/ro_core_ext/module_misc.rb +70 -0
- data/lib/ro_core_ext/object.rb +11 -0
- data/lib/ro_core_ext/pry.rb +10 -0
- data/lib/ro_core_ext/string.rb +37 -0
- data/lib/ro_core_ext/symbol.rb +0 -0
- data/lib/ro_core_ext/thor.rb +0 -0
- data/lib/ro_default.rb +8 -0
- data/lib/ro_file.rb +71 -0
- data/lib/ro_helpers.rb +5 -0
- data/lib/ro_helpers/all_ro_commands.rb +4 -0
- data/lib/ro_helpers/all_ro_commands_files.rb +42 -0
- data/lib/ro_helpers/bash.rb +100 -0
- data/lib/{ro_commands → ro_helpers}/hook.rb +1 -1
- data/lib/ro_helpers/out.rb +154 -0
- data/lib/ro_helpers/ro_bin_helper.rb +107 -0
- data/lib/{ro_commands → ro_helpers}/ro_helper.rb +1 -1
- data/lib/ro_misc/exec.rb +16 -0
- data/lib/ro_rails_helpers.rb +6 -0
- data/lib/ro_rails_helpers/handler.rb +33 -0
- data/lib/ro_rspec_helpers.rb +7 -0
- data/lib/ro_rspec_helpers/deps.rb +4 -0
- data/lib/ro_rspec_helpers/ro_faker.rb +116 -0
- data/lib/ro_rspec_helpers/ro_spec_helper.rb +48 -0
- data/lib/ro_rspec_helpers/run_in.rb +7 -0
- data/lib/ro_rspec_helpers/spec_matchers.rb +30 -0
- data/lib/set_envs_helper.rb +17 -8
- data/ro_commands.sh +221 -158
- data/spec/bin_spec.rb +13 -0
- data/spec/fixtures/Gemfile +58 -0
- data/spec/fixtures/Gemfile.lock +236 -0
- data/spec/fixtures/bash/try1 +0 -0
- data/spec/fixtures/bash/try2 +0 -0
- data/spec/fixtures/basic_helper/Guardfile +0 -0
- data/spec/fixtures/basic_helper/lib/guard_helpers/no1_guard_helper.rb +5 -0
- data/spec/fixtures/basic_helper/lib/guard_helpers/no2_guard_helper.rb +5 -0
- data/spec/fixtures/basic_helper/lib/guard_helpers/no3_guard_helper.rb +5 -0
- data/spec/fixtures/deps/lib/dir/f.rb +0 -0
- data/spec/fixtures/deps/lib/dir/f2.rb +0 -0
- data/spec/fixtures/deps_methods/lib/path/to/file.rb +7 -0
- data/spec/fixtures/deps_methods/lib/ro_commands/cmd.rb +6 -0
- data/spec/fixtures/file_actions/loli +0 -0
- data/spec/fixtures/file_actions/lolicon.rb +0 -0
- data/spec/fixtures/for_git/tmp/rspec_guard_result +1 -0
- data/spec/fixtures/for_method_backup/version.rb +3 -0
- data/spec/fixtures/for_methods/version.rb +0 -0
- data/spec/fixtures/for_process/config.ru +11 -0
- data/spec/fixtures/for_process/tmp/rspec_guard_result +1 -0
- data/spec/fixtures/for_rails/Gemfile +58 -0
- data/spec/fixtures/for_rails/Gemfile.lock +236 -0
- data/{test/dummy → spec/fixtures/for_rails}/README.rdoc +0 -0
- data/spec/fixtures/for_rails/Rakefile +6 -0
- data/{test/dummy → spec/fixtures/for_rails}/app/assets/javascripts/application.js +3 -0
- data/spec/fixtures/for_rails/app/assets/javascripts/articles.js.coffee +3 -0
- data/spec/fixtures/for_rails/app/assets/javascripts/comments.js.coffee +3 -0
- data/spec/fixtures/for_rails/app/assets/javascripts/users.js.coffee +3 -0
- data/{test/dummy → spec/fixtures/for_rails}/app/assets/stylesheets/application.css +0 -0
- data/spec/fixtures/for_rails/app/assets/stylesheets/articles.css.scss +3 -0
- data/spec/fixtures/for_rails/app/assets/stylesheets/comments.css.scss +3 -0
- data/spec/fixtures/for_rails/app/assets/stylesheets/scaffolds.css.scss +69 -0
- data/spec/fixtures/for_rails/app/assets/stylesheets/users.css.scss +3 -0
- data/{test/dummy → spec/fixtures/for_rails}/app/controllers/application_controller.rb +0 -0
- data/spec/fixtures/for_rails/app/controllers/articles_controller.rb +74 -0
- data/spec/fixtures/for_rails/app/controllers/comments_controller.rb +74 -0
- data/spec/fixtures/for_rails/app/controllers/users_controller.rb +74 -0
- data/{test/dummy → spec/fixtures/for_rails}/app/helpers/application_helper.rb +0 -0
- data/spec/fixtures/for_rails/app/helpers/articles_helper.rb +2 -0
- data/spec/fixtures/for_rails/app/helpers/comments_helper.rb +2 -0
- data/spec/fixtures/for_rails/app/helpers/users_helper.rb +2 -0
- data/spec/fixtures/for_rails/app/models/article.rb +2 -0
- data/spec/fixtures/for_rails/app/models/comment.rb +2 -0
- data/spec/fixtures/for_rails/app/models/user.rb +2 -0
- data/spec/fixtures/for_rails/app/views/articles/_form.html.erb +29 -0
- data/spec/fixtures/for_rails/app/views/articles/edit.html.erb +6 -0
- data/spec/fixtures/for_rails/app/views/articles/index.html.erb +31 -0
- data/spec/fixtures/for_rails/app/views/articles/index.json.jbuilder +4 -0
- data/spec/fixtures/for_rails/app/views/articles/new.html.erb +5 -0
- data/spec/fixtures/for_rails/app/views/articles/show.html.erb +19 -0
- data/spec/fixtures/for_rails/app/views/articles/show.json.jbuilder +1 -0
- data/spec/fixtures/for_rails/app/views/comments/_form.html.erb +29 -0
- data/spec/fixtures/for_rails/app/views/comments/edit.html.erb +6 -0
- data/spec/fixtures/for_rails/app/views/comments/index.html.erb +31 -0
- data/spec/fixtures/for_rails/app/views/comments/index.json.jbuilder +4 -0
- data/spec/fixtures/for_rails/app/views/comments/new.html.erb +5 -0
- data/spec/fixtures/for_rails/app/views/comments/show.html.erb +19 -0
- data/spec/fixtures/for_rails/app/views/comments/show.json.jbuilder +1 -0
- data/spec/fixtures/for_rails/app/views/layouts/application.html.erb +14 -0
- data/spec/fixtures/for_rails/app/views/users/_form.html.erb +25 -0
- data/spec/fixtures/for_rails/app/views/users/edit.html.erb +6 -0
- data/spec/fixtures/for_rails/app/views/users/index.html.erb +29 -0
- data/spec/fixtures/for_rails/app/views/users/index.json.jbuilder +4 -0
- data/spec/fixtures/for_rails/app/views/users/new.html.erb +5 -0
- data/spec/fixtures/for_rails/app/views/users/show.html.erb +14 -0
- data/spec/fixtures/for_rails/app/views/users/show.json.jbuilder +1 -0
- data/{test/dummy → spec/fixtures/for_rails}/bin/bundle +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/bin/rails +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/bin/rake +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/config.ru +0 -0
- data/spec/fixtures/for_rails/config/application.rb +23 -0
- data/spec/fixtures/for_rails/config/boot.rb +4 -0
- data/spec/fixtures/for_rails/config/database.yml +39 -0
- data/spec/fixtures/for_rails/config/environment.rb +5 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/environments/development.rb +1 -1
- data/{test/dummy → spec/fixtures/for_rails}/config/environments/production.rb +1 -1
- data/{test/dummy → spec/fixtures/for_rails}/config/environments/test.rb +1 -1
- data/{test/dummy → spec/fixtures/for_rails}/config/initializers/backtrace_silencers.rb +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/initializers/inflections.rb +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/initializers/mime_types.rb +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/initializers/secret_token.rb +2 -2
- data/spec/fixtures/for_rails/config/initializers/session_store.rb +3 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/initializers/wrap_parameters.rb +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/config/locales/en.yml +0 -0
- data/spec/fixtures/for_rails/config/routes.rb +62 -0
- data/spec/fixtures/for_rails/db/migrate/20131208083747_create_articles.rb +11 -0
- data/spec/fixtures/for_rails/db/migrate/20131208083756_create_comments.rb +11 -0
- data/spec/fixtures/for_rails/db/migrate/20131208083835_create_users.rb +10 -0
- data/spec/fixtures/for_rails/db/seeds.rb +7 -0
- data/{test/dummy → spec/fixtures/for_rails}/public/404.html +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/public/422.html +0 -0
- data/{test/dummy → spec/fixtures/for_rails}/public/500.html +0 -0
- data/spec/fixtures/for_rails/public/favicon.ico +0 -0
- data/spec/fixtures/for_rails/public/robots.txt +5 -0
- data/spec/fixtures/for_rails/test/test_helper.rb +15 -0
- data/spec/fixtures/generator/update_spec_tree/backup/Gemfile +45 -0
- data/spec/fixtures/generator/update_spec_tree/backup/Gemfile.lock +119 -0
- data/spec/fixtures/generator/update_spec_tree/backup/README.rdoc +28 -0
- data/{test/dummy → spec/fixtures/generator/update_spec_tree/backup}/Rakefile +1 -1
- data/spec/fixtures/generator/update_spec_tree/backup/app/assets/javascripts/application.js +16 -0
- data/spec/fixtures/generator/update_spec_tree/backup/app/assets/stylesheets/application.css +13 -0
- data/spec/fixtures/generator/update_spec_tree/backup/app/controllers/application_controller.rb +5 -0
- data/spec/fixtures/generator/update_spec_tree/backup/app/helpers/application_helper.rb +2 -0
- data/{test/dummy → spec/fixtures/generator/update_spec_tree/backup}/app/views/layouts/application.html.erb +1 -1
- data/spec/fixtures/generator/update_spec_tree/backup/bin/bundle +3 -0
- data/spec/fixtures/generator/update_spec_tree/backup/bin/rails +4 -0
- data/spec/fixtures/generator/update_spec_tree/backup/bin/rake +4 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config.ru +4 -0
- data/{test/dummy → spec/fixtures/generator/update_spec_tree/backup}/config/application.rb +4 -4
- data/spec/fixtures/generator/update_spec_tree/backup/config/boot.rb +4 -0
- data/{test/dummy → spec/fixtures/generator/update_spec_tree/backup}/config/database.yml +0 -0
- data/{test/dummy → spec/fixtures/generator/update_spec_tree/backup}/config/environment.rb +1 -1
- data/spec/fixtures/generator/update_spec_tree/backup/config/environments/development.rb +29 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/environments/production.rb +80 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/environments/test.rb +36 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/inflections.rb +16 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/mime_types.rb +5 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/secret_token.rb +12 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/session_store.rb +3 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/initializers/wrap_parameters.rb +14 -0
- data/spec/fixtures/generator/update_spec_tree/backup/config/locales/en.yml +23 -0
- data/{test/dummy → spec/fixtures/generator/update_spec_tree/backup}/config/routes.rb +1 -1
- data/spec/fixtures/generator/update_spec_tree/backup/db/seeds.rb +7 -0
- data/spec/fixtures/generator/update_spec_tree/backup/lib/assets/try1.rb +11 -0
- data/spec/fixtures/generator/update_spec_tree/backup/lib/tasks/try2.rb +11 -0
- data/spec/fixtures/generator/update_spec_tree/backup/lib/try.rb +19 -0
- data/spec/fixtures/generator/update_spec_tree/backup/public/404.html +58 -0
- data/spec/fixtures/generator/update_spec_tree/backup/public/422.html +58 -0
- data/spec/fixtures/generator/update_spec_tree/backup/public/500.html +57 -0
- data/spec/fixtures/generator/update_spec_tree/backup/public/favicon.ico +0 -0
- data/spec/fixtures/generator/update_spec_tree/backup/public/robots.txt +5 -0
- data/spec/fixtures/generator/update_spec_tree/backup/spec/spec_helper.rb +17 -0
- data/spec/fixtures/generator/update_spec_tree/backup/test/test_helper.rb +15 -0
- data/spec/fixtures/generator/update_spec_tree/try/Gemfile +45 -0
- data/spec/fixtures/generator/update_spec_tree/try/Gemfile.lock +119 -0
- data/spec/fixtures/generator/update_spec_tree/try/README.rdoc +28 -0
- data/spec/fixtures/generator/update_spec_tree/try/Rakefile +6 -0
- data/spec/fixtures/generator/update_spec_tree/try/app/assets/javascripts/application.js +16 -0
- data/spec/fixtures/generator/update_spec_tree/try/app/assets/stylesheets/application.css +13 -0
- data/spec/fixtures/generator/update_spec_tree/try/app/controllers/application_controller.rb +5 -0
- data/spec/fixtures/generator/update_spec_tree/try/app/helpers/application_helper.rb +2 -0
- data/spec/fixtures/generator/update_spec_tree/try/app/views/layouts/application.html.erb +14 -0
- data/spec/fixtures/generator/update_spec_tree/try/bin/bundle +3 -0
- data/spec/fixtures/generator/update_spec_tree/try/bin/rails +4 -0
- data/spec/fixtures/generator/update_spec_tree/try/bin/rake +4 -0
- data/spec/fixtures/generator/update_spec_tree/try/config.ru +4 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/application.rb +23 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/boot.rb +4 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/database.yml +25 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/environment.rb +5 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/environments/development.rb +29 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/environments/production.rb +80 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/environments/test.rb +36 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/inflections.rb +16 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/mime_types.rb +5 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/secret_token.rb +12 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/session_store.rb +3 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/initializers/wrap_parameters.rb +14 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/locales/en.yml +23 -0
- data/spec/fixtures/generator/update_spec_tree/try/config/routes.rb +56 -0
- data/spec/fixtures/generator/update_spec_tree/try/db/seeds.rb +7 -0
- data/spec/fixtures/generator/update_spec_tree/try/lib/assets/try1.rb +11 -0
- data/spec/fixtures/generator/update_spec_tree/try/lib/tasks/try2.rb +11 -0
- data/spec/fixtures/generator/update_spec_tree/try/lib/try.rb +19 -0
- data/spec/fixtures/generator/update_spec_tree/try/log/development.log +0 -0
- data/spec/fixtures/generator/update_spec_tree/try/public/404.html +58 -0
- data/spec/fixtures/generator/update_spec_tree/try/public/422.html +58 -0
- data/spec/fixtures/generator/update_spec_tree/try/public/500.html +57 -0
- data/spec/fixtures/generator/update_spec_tree/try/public/favicon.ico +0 -0
- data/spec/fixtures/generator/update_spec_tree/try/public/robots.txt +5 -0
- data/spec/fixtures/generator/update_spec_tree/try/spec/spec_helper.rb +17 -0
- data/spec/fixtures/generator/update_spec_tree/try/test/test_helper.rb +15 -0
- data/spec/fixtures/generators/lib/guard_helpers/ro_helper.rb +0 -0
- data/spec/fixtures/generators/spec/lib/guard_helpers/ro_helper_spec.rb +2 -0
- data/spec/fixtures/handler/error_page.html +1 -0
- data/spec/fixtures/handler/result.html +1 -0
- data/spec/fixtures/lib/element/backup.rb +0 -0
- data/spec/fixtures/navigate/faker_ro_commands/lib/ro_generators/a_generator.rb +0 -0
- data/spec/fixtures/navigate/faker_ro_commands/lib/typography/a_file.rb +0 -0
- data/spec/fixtures/rails_navigate/app/controllers/one_controller.rb +0 -0
- data/spec/fixtures/rails_navigate/app/controllers/two_controller.rb +0 -0
- data/spec/fixtures/rails_navigate/app/decorators/two_decorator.rb +0 -0
- data/spec/fixtures/rails_navigate/app/models/two_model.rb +0 -0
- data/spec/fixtures/rails_navigate/lib/path/to/file.rb +0 -0
- data/spec/fixtures/rails_navigate/lib/path/to/file2.rb +0 -0
- data/spec/fixtures/rails_new_app/try_create_rails/Gemfile +57 -0
- data/spec/fixtures/rails_new_app/try_create_rails/README.rdoc +28 -0
- data/spec/fixtures/rails_new_app/try_create_rails/Rakefile +6 -0
- data/spec/fixtures/rails_new_app/try_create_rails/app/assets/javascripts/application.js +16 -0
- data/spec/fixtures/rails_new_app/try_create_rails/app/assets/stylesheets/application.css +13 -0
- data/spec/fixtures/rails_new_app/try_create_rails/app/controllers/application_controller.rb +5 -0
- data/spec/fixtures/rails_new_app/try_create_rails/app/helpers/application_helper.rb +2 -0
- data/spec/fixtures/rails_new_app/try_create_rails/app/views/layouts/application.html.erb +14 -0
- data/spec/fixtures/rails_new_app/try_create_rails/bin/bundle +3 -0
- data/spec/fixtures/rails_new_app/try_create_rails/bin/rails +4 -0
- data/spec/fixtures/rails_new_app/try_create_rails/bin/rake +4 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config.ru +4 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/application.rb +23 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/boot.rb +4 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/database.yml +39 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/environment.rb +5 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/environments/development.rb +29 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/environments/production.rb +80 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/environments/test.rb +36 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/inflections.rb +16 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/mime_types.rb +5 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/secret_token.rb +12 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/session_store.rb +3 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/initializers/wrap_parameters.rb +14 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/locales/en.yml +23 -0
- data/spec/fixtures/rails_new_app/try_create_rails/config/routes.rb +56 -0
- data/spec/fixtures/rails_new_app/try_create_rails/db/seeds.rb +7 -0
- data/spec/fixtures/rails_new_app/try_create_rails/public/404.html +58 -0
- data/spec/fixtures/rails_new_app/try_create_rails/public/422.html +58 -0
- data/spec/fixtures/rails_new_app/try_create_rails/public/500.html +57 -0
- data/spec/fixtures/rails_new_app/try_create_rails/public/favicon.ico +0 -0
- data/spec/fixtures/rails_new_app/try_create_rails/public/robots.txt +5 -0
- data/spec/fixtures/rails_new_app/try_create_rails/test/test_helper.rb +15 -0
- data/spec/fixtures/ro_bin_helper/gem1/lib/ro_commands/cmd1.rb +0 -0
- data/spec/fixtures/ro_bin_helper/gem1/lib/ro_commands/cmd2.rb +0 -0
- data/spec/fixtures/ro_bin_helper/gem2/lib/ro_commands/cmd1.rb +0 -0
- data/spec/fixtures/ro_bin_helper/gem2/lib/ro_commands/cmd2.rb +0 -0
- data/spec/fixtures/ro_commands_bin/lib/ro_commands/outside_ro_command.rb +5 -0
- data/spec/fixtures/ro_gist/ex/ex3.rb +0 -0
- data/spec/fixtures/ro_gist/ex/ex3_spec.rb +0 -0
- data/spec/fixtures/rodebug/config/routes.rb +6 -0
- data/spec/fixtures/spec/spec_helper.rb +20 -0
- data/spec/fixtures/tmp/rspec_guard_result +5 -0
- data/spec/fixtures/try_create_rails/Gemfile +58 -0
- data/spec/fixtures/try_create_rails/README.rdoc +28 -0
- data/spec/fixtures/try_create_rails/Rakefile +6 -0
- data/spec/fixtures/try_create_rails/app/assets/javascripts/application.js +16 -0
- data/spec/fixtures/try_create_rails/app/assets/stylesheets/application.css +13 -0
- data/spec/fixtures/try_create_rails/app/controllers/application_controller.rb +5 -0
- data/spec/fixtures/try_create_rails/app/helpers/application_helper.rb +2 -0
- data/spec/fixtures/try_create_rails/app/views/layouts/application.html.erb +14 -0
- data/spec/fixtures/try_create_rails/bin/bundle +3 -0
- data/spec/fixtures/try_create_rails/bin/rails +4 -0
- data/spec/fixtures/try_create_rails/bin/rake +4 -0
- data/spec/fixtures/try_create_rails/config.ru +4 -0
- data/spec/fixtures/try_create_rails/config/application.rb +23 -0
- data/spec/fixtures/try_create_rails/config/boot.rb +4 -0
- data/spec/fixtures/try_create_rails/config/database.yml +39 -0
- data/spec/fixtures/try_create_rails/config/environment.rb +5 -0
- data/spec/fixtures/try_create_rails/config/environments/development.rb +29 -0
- data/spec/fixtures/try_create_rails/config/environments/production.rb +80 -0
- data/spec/fixtures/try_create_rails/config/environments/test.rb +36 -0
- data/spec/fixtures/try_create_rails/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/fixtures/try_create_rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/fixtures/try_create_rails/config/initializers/inflections.rb +16 -0
- data/spec/fixtures/try_create_rails/config/initializers/mime_types.rb +5 -0
- data/spec/fixtures/try_create_rails/config/initializers/secret_token.rb +12 -0
- data/spec/fixtures/try_create_rails/config/initializers/session_store.rb +3 -0
- data/spec/fixtures/try_create_rails/config/initializers/wrap_parameters.rb +14 -0
- data/spec/fixtures/try_create_rails/config/locales/en.yml +23 -0
- data/spec/fixtures/try_create_rails/config/routes.rb +56 -0
- data/spec/fixtures/try_create_rails/db/seeds.rb +7 -0
- data/spec/fixtures/try_create_rails/public/404.html +58 -0
- data/spec/fixtures/try_create_rails/public/422.html +58 -0
- data/spec/fixtures/try_create_rails/public/500.html +57 -0
- data/spec/fixtures/try_create_rails/public/favicon.ico +0 -0
- data/spec/fixtures/try_create_rails/public/robots.txt +5 -0
- data/spec/fixtures/try_create_rails/test/test_helper.rb +15 -0
- data/spec/lib/all_spec.rb +36 -0
- data/spec/lib/bash_builder_spec.rb +75 -0
- data/spec/lib/bash_debug_spec.rb +24 -0
- data/spec/lib/core_ext/misc_helper_spec.rb +20 -0
- data/spec/lib/core_ext/module_misc_spec.rb +38 -0
- data/spec/lib/deps_methods_spec.rb +52 -0
- data/spec/lib/deps_spec.rb +27 -0
- data/spec/lib/guard_helpers/base_helper_spec.rb +56 -0
- data/spec/lib/guard_helpers/basic_helper_spec.rb +44 -0
- data/spec/lib/guard_helpers/gem_helper_spec.rb +14 -0
- data/spec/lib/guard_helpers/mid_mod_class_method_helper_spec.rb +35 -0
- data/spec/lib/ro_cells/gem_spec.rb +25 -0
- data/spec/lib/ro_commands/base_config_spec.rb +0 -0
- data/spec/lib/ro_commands/base_spec.rb +45 -0
- data/spec/lib/ro_commands/dsl/file_spec.rb +0 -0
- data/spec/lib/ro_commands/env/base_config_spec.rb +0 -0
- data/spec/lib/ro_commands/env/ro_proc_spec.rb +0 -0
- data/spec/lib/ro_commands/env/ro_process_spec.rb +0 -0
- data/spec/lib/ro_commands/file_actions_spec.rb +31 -0
- data/spec/lib/ro_commands/generate_spec.rb +7 -0
- data/spec/lib/ro_commands/generators/base_generator_spec.rb +2 -0
- data/spec/lib/ro_commands/generators/ex_spec.rb +33 -0
- data/spec/lib/ro_commands/generators/lib_spec.rb +2 -0
- data/spec/lib/ro_commands/generators/rails_generator_spec.rb +22 -0
- data/spec/lib/ro_commands/generators/rails_new_app_spec.rb +20 -0
- data/spec/lib/ro_commands/generators/rodebug_spec.rb +17 -0
- data/spec/lib/ro_commands/generators/spec_file_spec.rb +69 -0
- data/spec/lib/ro_commands/git_flow_spec.rb +19 -0
- data/spec/lib/ro_commands/git_spec.rb +0 -0
- data/spec/lib/ro_commands/misc_spec.rb +35 -0
- data/spec/lib/ro_commands/navigate_spec.rb +46 -0
- data/spec/lib/ro_commands/out_spec.rb +23 -0
- data/spec/lib/ro_commands/process_spec.rb +0 -0
- data/spec/lib/ro_commands/processes_spec.rb +0 -0
- data/spec/lib/ro_commands/rails_spec.rb +83 -0
- data/spec/lib/ro_commands/refactor_spec.rb +52 -0
- data/spec/lib/ro_commands/ro_gist_spec.rb +23 -0
- data/spec/lib/ro_commands/ro_helper_spec.rb +32 -0
- data/spec/lib/ro_commands/rubymine_spec.rb +0 -0
- data/spec/lib/ro_commands/version_spec.rb +0 -0
- data/spec/lib/ro_commands/zeus_spec.rb +12 -0
- data/spec/lib/ro_commands_bin_spec.rb +21 -0
- data/spec/lib/ro_commands_spec.rb +1 -0
- data/spec/lib/ro_core_ext/array_spec.rb +11 -0
- data/spec/lib/ro_core_ext/hash_spec.rb +12 -0
- data/spec/lib/ro_core_ext/object_spec.rb +12 -0
- data/spec/lib/ro_core_ext/string_spec.rb +10 -0
- data/spec/lib/ro_file_spec.rb +27 -0
- data/spec/lib/ro_helpers/all_ro_commands_spec.rb +9 -0
- data/spec/lib/ro_helpers/bash_spec.rb +40 -0
- data/spec/lib/ro_helpers/ro_bin_helper_spec.rb +23 -0
- data/spec/lib/ro_rails_helpers/handler_spec.rb +23 -0
- data/spec/lib/ro_rspec_helpers/ro_faker_spec.rb +14 -0
- data/spec/lib/ro_rspec_helpers/spec_helpers_spec.rb +5 -0
- data/spec/lib/ro_rspec_helpers_spec.rb +8 -0
- data/spec/lib/shortcuts_spec.rb +8 -0
- data/spec/lib/tasks/roro_commands_tasks_spec.rb +2 -0
- data/spec/lib/try_spec.rb +0 -0
- data/spec/lib/typography/test/typography_test_spec.rb +2 -0
- data/spec/ro_faker_templates/error_page.erb +1 -0
- data/spec/ro_faker_templates/outside_ro_commands.tt +5 -0
- data/spec/ro_faker_templates/rails4/Gemfile +58 -0
- data/spec/ro_faker_templates/rails4/Gemfile.lock +236 -0
- data/spec/ro_faker_templates/rails4/README.rdoc +28 -0
- data/spec/ro_faker_templates/rails4/Rakefile +6 -0
- data/spec/ro_faker_templates/rails4/app/assets/javascripts/application.js +16 -0
- data/spec/ro_faker_templates/rails4/app/assets/javascripts/articles.js.coffee +3 -0
- data/spec/ro_faker_templates/rails4/app/assets/javascripts/comments.js.coffee +3 -0
- data/spec/ro_faker_templates/rails4/app/assets/javascripts/users.js.coffee +3 -0
- data/spec/ro_faker_templates/rails4/app/assets/stylesheets/application.css +13 -0
- data/spec/ro_faker_templates/rails4/app/assets/stylesheets/articles.css.scss +3 -0
- data/spec/ro_faker_templates/rails4/app/assets/stylesheets/comments.css.scss +3 -0
- data/spec/ro_faker_templates/rails4/app/assets/stylesheets/scaffolds.css.scss +69 -0
- data/spec/ro_faker_templates/rails4/app/assets/stylesheets/users.css.scss +3 -0
- data/spec/ro_faker_templates/rails4/app/controllers/application_controller.rb +5 -0
- data/spec/ro_faker_templates/rails4/app/controllers/articles_controller.rb +74 -0
- data/spec/ro_faker_templates/rails4/app/controllers/comments_controller.rb +74 -0
- data/spec/ro_faker_templates/rails4/app/controllers/users_controller.rb +74 -0
- data/spec/ro_faker_templates/rails4/app/helpers/application_helper.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/helpers/articles_helper.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/helpers/comments_helper.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/helpers/users_helper.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/models/article.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/models/comment.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/models/user.rb +2 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/_form.html.erb +29 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/edit.html.erb +6 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/index.html.erb +31 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/index.json.jbuilder +4 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/new.html.erb +5 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/show.html.erb +19 -0
- data/spec/ro_faker_templates/rails4/app/views/articles/show.json.jbuilder +1 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/_form.html.erb +29 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/edit.html.erb +6 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/index.html.erb +31 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/index.json.jbuilder +4 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/new.html.erb +5 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/show.html.erb +19 -0
- data/spec/ro_faker_templates/rails4/app/views/comments/show.json.jbuilder +1 -0
- data/spec/ro_faker_templates/rails4/app/views/layouts/application.html.erb +14 -0
- data/spec/ro_faker_templates/rails4/app/views/users/_form.html.erb +25 -0
- data/spec/ro_faker_templates/rails4/app/views/users/edit.html.erb +6 -0
- data/spec/ro_faker_templates/rails4/app/views/users/index.html.erb +29 -0
- data/spec/ro_faker_templates/rails4/app/views/users/index.json.jbuilder +4 -0
- data/spec/ro_faker_templates/rails4/app/views/users/new.html.erb +5 -0
- data/spec/ro_faker_templates/rails4/app/views/users/show.html.erb +14 -0
- data/spec/ro_faker_templates/rails4/app/views/users/show.json.jbuilder +1 -0
- data/spec/ro_faker_templates/rails4/bin/bundle +3 -0
- data/spec/ro_faker_templates/rails4/bin/rails +4 -0
- data/spec/ro_faker_templates/rails4/bin/rake +4 -0
- data/spec/ro_faker_templates/rails4/config.ru +4 -0
- data/spec/ro_faker_templates/rails4/config/application.rb +23 -0
- data/spec/ro_faker_templates/rails4/config/boot.rb +4 -0
- data/spec/ro_faker_templates/rails4/config/database.yml +39 -0
- data/spec/ro_faker_templates/rails4/config/environment.rb +5 -0
- data/spec/ro_faker_templates/rails4/config/environments/development.rb +29 -0
- data/spec/ro_faker_templates/rails4/config/environments/production.rb +80 -0
- data/spec/ro_faker_templates/rails4/config/environments/test.rb +36 -0
- data/spec/ro_faker_templates/rails4/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/ro_faker_templates/rails4/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/ro_faker_templates/rails4/config/initializers/inflections.rb +16 -0
- data/spec/ro_faker_templates/rails4/config/initializers/mime_types.rb +5 -0
- data/spec/ro_faker_templates/rails4/config/initializers/secret_token.rb +12 -0
- data/spec/ro_faker_templates/rails4/config/initializers/session_store.rb +3 -0
- data/spec/ro_faker_templates/rails4/config/initializers/wrap_parameters.rb +14 -0
- data/spec/ro_faker_templates/rails4/config/locales/en.yml +23 -0
- data/spec/ro_faker_templates/rails4/config/routes.rb +62 -0
- data/spec/ro_faker_templates/rails4/db/migrate/20131208083747_create_articles.rb +11 -0
- data/spec/ro_faker_templates/rails4/db/migrate/20131208083756_create_comments.rb +11 -0
- data/spec/ro_faker_templates/rails4/db/migrate/20131208083835_create_users.rb +10 -0
- data/spec/ro_faker_templates/rails4/db/seeds.rb +7 -0
- data/spec/ro_faker_templates/rails4/public/404.html +58 -0
- data/spec/ro_faker_templates/rails4/public/422.html +58 -0
- data/spec/ro_faker_templates/rails4/public/500.html +57 -0
- data/spec/ro_faker_templates/rails4/public/favicon.ico +0 -0
- data/spec/ro_faker_templates/rails4/public/robots.txt +5 -0
- data/spec/ro_faker_templates/rails4/test/test_helper.rb +15 -0
- data/spec/ro_faker_templates/routes.erb +3 -0
- data/spec/spec_helper.rb +40 -0
- metadata +1001 -84
- data/README.rdoc +0 -3
- data/lib/ro_commands/core_ext/hash.rb +0 -5
- data/lib/ro_commands/core_ext/string.rb +0 -18
- data/lib/ro_commands/dsl/ro_file.rb +0 -24
- data/lib/ro_commands/helpers/all.rb +0 -8
- data/lib/ro_commands/helpers/all_files.rb +0 -21
- data/lib/ro_commands/helpers/bash.rb +0 -59
- data/lib/ro_commands/helpers/out.rb +0 -88
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/roro_commands_test.rb +0 -7
- data/test/test_helper.rb +0 -15
data/ro_commands.sh
CHANGED
@@ -5,14 +5,196 @@ learn="$HOME/Dropbox/learn"
|
|
5
5
|
ruby_projects="$HOME/Dropbox/ruby-projects"
|
6
6
|
js_java_projects="$HOME/Dropbox/js-java-projects"
|
7
7
|
work_project="$ruby_projects/ro_partner"
|
8
|
-
|
8
|
+
RUBYMINE_HOME="~/Dropbox/RubyMine"
|
9
|
+
alias ro="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ro_commands-0.0.3/bin/ro"
|
9
10
|
alias ro_client="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ro_commands-0.0.3/bin/ro_client"
|
10
11
|
alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ro_commands-0.0.3/bin/ro_server"
|
11
12
|
|
13
|
+
alias list="ro_client info list ."
|
14
|
+
|
15
|
+
alias guard="bundle exec guard "
|
16
|
+
alias bx="bundle exec"
|
17
|
+
|
18
|
+
alias goagenthosts="ro_client crawler get_hosts_for_goagent"
|
19
|
+
|
20
|
+
|
21
|
+
alias dbc="zeus rake db:create"
|
22
|
+
alias railsnewapp="ro generate rails_new_app"
|
23
|
+
alias de="zeus g decorator"
|
24
|
+
alias zro="zeus ro"
|
25
|
+
|
26
|
+
function mi() {
|
27
|
+
zeus rake db:migration
|
28
|
+
zeus rake test:prepare
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
alias sp="smplayer"
|
33
|
+
alias record="recordmydesktop --no-sound --overwrite -o"
|
34
|
+
alias ad="avidemux --output-format AVI"
|
35
|
+
|
36
|
+
alias work="bundle exec ro shortcuts work"
|
37
|
+
|
38
|
+
alias e=rerun_debug
|
39
|
+
#function rerun_debug() {
|
40
|
+
# eval $(xdotool getmouselocation --shell)
|
41
|
+
# xdotool key F10
|
42
|
+
# xdotool mousemove 14 558
|
43
|
+
# xdotool click 1
|
44
|
+
# xdotool click 1
|
45
|
+
# xdotool key --delay 200 ctrl+F5
|
46
|
+
# xdotool mousemove $X $Y
|
47
|
+
#}
|
48
|
+
|
49
|
+
alias ga='git add'
|
50
|
+
alias gaa='ga .'
|
51
|
+
alias gb='git branch'
|
52
|
+
alias gco='git checkout'
|
53
|
+
alias gc='git commit -am'
|
54
|
+
alias gi='git add -i'
|
55
|
+
alias gl='git log --oneline --all --color --graph --decorate'
|
56
|
+
alias gm='git merge'
|
57
|
+
alias gp='git push -u origin master'
|
58
|
+
alias gst='git status'
|
59
|
+
alias gupdatesubmodule="git submodule foreach git pull origin master"
|
60
|
+
alias gh="github"
|
61
|
+
|
62
|
+
|
63
|
+
alias navigate="ro_client navigate"
|
64
|
+
#idea
|
65
|
+
alias i='idea `pwd`'
|
66
|
+
|
67
|
+
#rubymine
|
68
|
+
alias r='rubymine `pwd`'
|
69
|
+
alias libspec="ro shortcuts lib_spec"
|
70
|
+
alias rbm="rubymine"
|
71
|
+
|
72
|
+
function cd_path() {
|
73
|
+
echo "opening $1"
|
74
|
+
cd "$1"
|
75
|
+
}
|
76
|
+
|
77
|
+
function rubymine_open_path() {
|
78
|
+
cd_path "$1"
|
79
|
+
rubymine .
|
80
|
+
}
|
81
|
+
|
82
|
+
function idea_open_path() {
|
83
|
+
cd_path "$1"
|
84
|
+
idea .
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
cdir () {
|
89
|
+
path=`ro_client navigate get_dir $1`
|
90
|
+
cd_path "$path"
|
91
|
+
}
|
92
|
+
|
93
|
+
odir () {
|
94
|
+
cdir $1
|
95
|
+
rubymine .
|
96
|
+
}
|
97
|
+
|
98
|
+
# cd to project path
|
99
|
+
cpj () {
|
100
|
+
path=`ro_client navigate get_project $1`
|
101
|
+
cd_path "$path"
|
102
|
+
}
|
103
|
+
|
104
|
+
pj () {
|
105
|
+
cpj $1
|
106
|
+
rubymine .
|
107
|
+
}
|
108
|
+
|
109
|
+
cjpj () {
|
110
|
+
path=`ro_client navigate get_project $1 java`
|
111
|
+
echo "cd $path"
|
112
|
+
cd "$path"
|
113
|
+
}
|
114
|
+
|
115
|
+
jpj () {
|
116
|
+
path=`ro_client navigate get_project $1 java`
|
117
|
+
idea_open_path "$path"
|
118
|
+
}
|
119
|
+
|
120
|
+
function csub() {
|
121
|
+
path=`navigate get_submodule $1`
|
122
|
+
cd_path $path
|
123
|
+
}
|
124
|
+
|
125
|
+
function sub() {
|
126
|
+
csub $1
|
127
|
+
rubymine .
|
128
|
+
}
|
129
|
+
|
130
|
+
function roadmap() {
|
131
|
+
path=`navigate get_roadmap $1`
|
132
|
+
rubymine_open_path "$path"
|
133
|
+
}
|
134
|
+
|
135
|
+
alias rco="ro shortcuts open_ro_commands"
|
136
|
+
alias rsu="ro shortcuts open_ro_support"
|
137
|
+
|
138
|
+
|
139
|
+
alias unzip="ro misc unzip"
|
140
|
+
alias rn="ro file_actions rename"
|
141
|
+
alias f="ro file_actions find"
|
142
|
+
alias cddownloads="cd ~/Dropbox/Downloads"
|
143
|
+
|
144
|
+
#gist
|
145
|
+
alias note='bundle exec ro ro_gist upload'
|
146
|
+
alias deprecate='bundle exec ro ro_gist deprecate'
|
147
|
+
|
148
|
+
#mysql
|
149
|
+
alias mysqlrestart="sudo service mysql restart"
|
150
|
+
alias mysql="mysql -uroot"
|
151
|
+
|
152
|
+
#process
|
153
|
+
alias pkillf="sudo pkill -f"
|
154
|
+
#grep
|
155
|
+
alias psgrep="ps aux | grep"
|
156
|
+
alias aliasgrep="alias | grep"
|
157
|
+
alias pgrepf="pgrep -f"
|
158
|
+
|
159
|
+
alias spec="ro generate spec_file"
|
160
|
+
alias ex="ro generate ex"
|
161
|
+
alias dl="cd ~/Downloads"
|
162
|
+
alias sshproxy="sudo service ssh-proxy restart"
|
163
|
+
alias roserver="sudo service ro_server"
|
164
|
+
|
165
|
+
# cd to dir
|
166
|
+
alias rp="cd ~/Dropbox/ruby-projects"
|
167
|
+
|
168
|
+
alias dp="cd $HOME/Dropbox"
|
169
|
+
|
170
|
+
# js java project
|
171
|
+
alias jp="cd $js_java_projects"
|
172
|
+
|
173
|
+
alias fas="ro_client file_actions"
|
174
|
+
alias rps="ro_client ro_procs"
|
175
|
+
alias rclocal="sudo rubymine /etc/rc.local"
|
176
|
+
alias wp='working_project'
|
177
|
+
|
178
|
+
alias work_project="cd $work_project"
|
179
|
+
alias l="cd $learn"
|
180
|
+
|
181
|
+
#find railscasts
|
182
|
+
alias rc="ro_client file_actions find_railscasts"
|
183
|
+
|
184
|
+
# reload ~/bashrc.erb
|
185
|
+
alias rb="source ~/.bashrc"
|
186
|
+
|
187
|
+
sock_proxy="socks5://127.0.0.1:1080"
|
188
|
+
alias proxy="http_proxy=$sock_proxy"
|
189
|
+
|
190
|
+
alias jk="jekyll"
|
191
|
+
alias jks="jekyll server"
|
192
|
+
|
193
|
+
|
12
194
|
|
13
195
|
alias z='zeus'
|
14
196
|
|
15
|
-
alias zr='
|
197
|
+
alias zr='zeus rails'
|
16
198
|
|
17
199
|
alias g='z g'
|
18
200
|
|
@@ -20,9 +202,11 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
20
202
|
|
21
203
|
alias zs='z s'
|
22
204
|
|
205
|
+
alias zk='zeus rake'
|
206
|
+
|
23
207
|
alias a='z g assets'
|
24
208
|
|
25
|
-
alias c='
|
209
|
+
alias c='z g controller'
|
26
210
|
|
27
211
|
alias m='zr migration'
|
28
212
|
|
@@ -40,11 +224,9 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
40
224
|
|
41
225
|
alias ds='d scaffold'
|
42
226
|
|
43
|
-
alias mi='z rake db:migrate'
|
44
|
-
|
45
|
-
alias bx='bundle exec'
|
46
227
|
|
47
228
|
|
229
|
+
|
48
230
|
|
49
231
|
|
50
232
|
|
@@ -70,7 +252,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
70
252
|
_da () {
|
71
253
|
local cur options command commands
|
72
254
|
_get_comp_words_by_ref cur
|
73
|
-
commands=$(
|
255
|
+
commands=$(zr get_assets)
|
74
256
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
75
257
|
|
76
258
|
if [ -z "($commands)" ]; then
|
@@ -87,7 +269,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
87
269
|
_dco () {
|
88
270
|
local cur options command commands
|
89
271
|
_get_comp_words_by_ref cur
|
90
|
-
commands=$(
|
272
|
+
commands=$(zr get_controllers)
|
91
273
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
92
274
|
|
93
275
|
if [ -z "($commands)" ]; then
|
@@ -104,7 +286,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
104
286
|
_dmo () {
|
105
287
|
local cur options command commands
|
106
288
|
_get_comp_words_by_ref cur
|
107
|
-
commands=$(
|
289
|
+
commands=$(zr get_models)
|
108
290
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
109
291
|
|
110
292
|
if [ -z "($commands)" ]; then
|
@@ -121,7 +303,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
121
303
|
_dm () {
|
122
304
|
local cur options command commands
|
123
305
|
_get_comp_words_by_ref cur
|
124
|
-
commands=$(
|
306
|
+
commands=$(zr get_migrations)
|
125
307
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
126
308
|
|
127
309
|
if [ -z "($commands)" ]; then
|
@@ -138,7 +320,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
138
320
|
_ds () {
|
139
321
|
local cur options command commands
|
140
322
|
_get_comp_words_by_ref cur
|
141
|
-
commands=$(
|
323
|
+
commands=$(zr get_scaffolds)
|
142
324
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
143
325
|
|
144
326
|
if [ -z "($commands)" ]; then
|
@@ -171,15 +353,13 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
171
353
|
|
172
354
|
|
173
355
|
|
174
|
-
|
175
|
-
|
176
356
|
|
177
357
|
|
178
358
|
|
179
359
|
_da () {
|
180
360
|
local cur options command commands
|
181
361
|
_get_comp_words_by_ref cur
|
182
|
-
commands=$(
|
362
|
+
commands=$(zr get_assets)
|
183
363
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
184
364
|
|
185
365
|
if [ -z "($commands)" ]; then
|
@@ -196,7 +376,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
196
376
|
_dco () {
|
197
377
|
local cur options command commands
|
198
378
|
_get_comp_words_by_ref cur
|
199
|
-
commands=$(
|
379
|
+
commands=$(zr get_controllers)
|
200
380
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
201
381
|
|
202
382
|
if [ -z "($commands)" ]; then
|
@@ -213,7 +393,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
213
393
|
_dmo () {
|
214
394
|
local cur options command commands
|
215
395
|
_get_comp_words_by_ref cur
|
216
|
-
commands=$(
|
396
|
+
commands=$(zr get_models)
|
217
397
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
218
398
|
|
219
399
|
if [ -z "($commands)" ]; then
|
@@ -230,7 +410,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
230
410
|
_dm () {
|
231
411
|
local cur options command commands
|
232
412
|
_get_comp_words_by_ref cur
|
233
|
-
commands=$(
|
413
|
+
commands=$(zr get_migrations)
|
234
414
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
235
415
|
|
236
416
|
if [ -z "($commands)" ]; then
|
@@ -247,7 +427,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
247
427
|
_ds () {
|
248
428
|
local cur options command commands
|
249
429
|
_get_comp_words_by_ref cur
|
250
|
-
commands=$(
|
430
|
+
commands=$(zr get_scaffolds)
|
251
431
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
252
432
|
|
253
433
|
if [ -z "($commands)" ]; then
|
@@ -260,15 +440,11 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
260
440
|
complete -o default -F _ds ds
|
261
441
|
|
262
442
|
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
443
|
|
268
444
|
|
269
445
|
alias z='zeus'
|
270
446
|
|
271
|
-
alias zr='
|
447
|
+
alias zr='zeus rails'
|
272
448
|
|
273
449
|
alias g='z g'
|
274
450
|
|
@@ -276,9 +452,11 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
276
452
|
|
277
453
|
alias zs='z s'
|
278
454
|
|
455
|
+
alias zk='zeus rake'
|
456
|
+
|
279
457
|
alias a='z g assets'
|
280
458
|
|
281
|
-
alias c='
|
459
|
+
alias c='z g controller'
|
282
460
|
|
283
461
|
alias m='zr migration'
|
284
462
|
|
@@ -296,13 +474,9 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
296
474
|
|
297
475
|
alias ds='d scaffold'
|
298
476
|
|
299
|
-
alias mi='z rake db:migrate'
|
300
|
-
|
301
|
-
alias bx='bundle exec'
|
302
|
-
|
303
477
|
alias z='zeus'
|
304
478
|
|
305
|
-
alias zr='
|
479
|
+
alias zr='zeus rails'
|
306
480
|
|
307
481
|
alias g='z g'
|
308
482
|
|
@@ -310,9 +484,11 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
310
484
|
|
311
485
|
alias zs='z s'
|
312
486
|
|
487
|
+
alias zk='zeus rake'
|
488
|
+
|
313
489
|
alias a='z g assets'
|
314
490
|
|
315
|
-
alias c='
|
491
|
+
alias c='z g controller'
|
316
492
|
|
317
493
|
alias m='zr migration'
|
318
494
|
|
@@ -330,10 +506,6 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
330
506
|
|
331
507
|
alias ds='d scaffold'
|
332
508
|
|
333
|
-
alias mi='z rake db:migrate'
|
334
|
-
|
335
|
-
alias bx='bundle exec'
|
336
|
-
|
337
509
|
alias gfi='git init && git flow init -f'
|
338
510
|
|
339
511
|
alias fr='git flow release'
|
@@ -372,13 +544,15 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
372
544
|
|
373
545
|
|
374
546
|
|
547
|
+
|
548
|
+
|
375
549
|
|
376
550
|
|
377
551
|
|
378
552
|
_da () {
|
379
553
|
local cur options command commands
|
380
554
|
_get_comp_words_by_ref cur
|
381
|
-
commands=$(
|
555
|
+
commands=$(zr get_assets)
|
382
556
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
383
557
|
|
384
558
|
if [ -z "($commands)" ]; then
|
@@ -395,7 +569,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
395
569
|
_dco () {
|
396
570
|
local cur options command commands
|
397
571
|
_get_comp_words_by_ref cur
|
398
|
-
commands=$(
|
572
|
+
commands=$(zr get_controllers)
|
399
573
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
400
574
|
|
401
575
|
if [ -z "($commands)" ]; then
|
@@ -412,7 +586,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
412
586
|
_dmo () {
|
413
587
|
local cur options command commands
|
414
588
|
_get_comp_words_by_ref cur
|
415
|
-
commands=$(
|
589
|
+
commands=$(zr get_models)
|
416
590
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
417
591
|
|
418
592
|
if [ -z "($commands)" ]; then
|
@@ -429,7 +603,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
429
603
|
_dm () {
|
430
604
|
local cur options command commands
|
431
605
|
_get_comp_words_by_ref cur
|
432
|
-
commands=$(
|
606
|
+
commands=$(zr get_migrations)
|
433
607
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
434
608
|
|
435
609
|
if [ -z "($commands)" ]; then
|
@@ -446,7 +620,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
446
620
|
_ds () {
|
447
621
|
local cur options command commands
|
448
622
|
_get_comp_words_by_ref cur
|
449
|
-
commands=$(
|
623
|
+
commands=$(zr get_scaffolds)
|
450
624
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
451
625
|
|
452
626
|
if [ -z "($commands)" ]; then
|
@@ -479,15 +653,13 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
479
653
|
|
480
654
|
|
481
655
|
|
482
|
-
|
483
|
-
|
484
656
|
|
485
657
|
|
486
658
|
|
487
659
|
_da () {
|
488
660
|
local cur options command commands
|
489
661
|
_get_comp_words_by_ref cur
|
490
|
-
commands=$(
|
662
|
+
commands=$(zr get_assets)
|
491
663
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
492
664
|
|
493
665
|
if [ -z "($commands)" ]; then
|
@@ -504,7 +676,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
504
676
|
_dco () {
|
505
677
|
local cur options command commands
|
506
678
|
_get_comp_words_by_ref cur
|
507
|
-
commands=$(
|
679
|
+
commands=$(zr get_controllers)
|
508
680
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
509
681
|
|
510
682
|
if [ -z "($commands)" ]; then
|
@@ -521,7 +693,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
521
693
|
_dmo () {
|
522
694
|
local cur options command commands
|
523
695
|
_get_comp_words_by_ref cur
|
524
|
-
commands=$(
|
696
|
+
commands=$(zr get_models)
|
525
697
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
526
698
|
|
527
699
|
if [ -z "($commands)" ]; then
|
@@ -538,7 +710,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
538
710
|
_dm () {
|
539
711
|
local cur options command commands
|
540
712
|
_get_comp_words_by_ref cur
|
541
|
-
commands=$(
|
713
|
+
commands=$(zr get_migrations)
|
542
714
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
543
715
|
|
544
716
|
if [ -z "($commands)" ]; then
|
@@ -555,7 +727,7 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
555
727
|
_ds () {
|
556
728
|
local cur options command commands
|
557
729
|
_get_comp_words_by_ref cur
|
558
|
-
commands=$(
|
730
|
+
commands=$(zr get_scaffolds)
|
559
731
|
local cur="${COMP_WORDS[$COMP_CWORD]}"
|
560
732
|
|
561
733
|
if [ -z "($commands)" ]; then
|
@@ -573,10 +745,6 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
573
745
|
|
574
746
|
|
575
747
|
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
748
|
_frf () {
|
581
749
|
local cur options command commands
|
582
750
|
_get_comp_words_by_ref cur
|
@@ -729,111 +897,6 @@ alias ro_server="/home/zxr/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/r
|
|
729
897
|
|
730
898
|
|
731
899
|
|
732
|
-
|
733
|
-
|
734
|
-
alias
|
735
|
-
|
736
|
-
|
737
|
-
alias sp="smplayer"
|
738
|
-
function record() {
|
739
|
-
recordmydesktop --no-sound --output=$1
|
740
|
-
}
|
741
|
-
|
742
|
-
alias work="ro shortcuts work"
|
743
|
-
|
744
|
-
alias ga='git add'
|
745
|
-
alias gaa='ga .'
|
746
|
-
alias gb='git branch'
|
747
|
-
alias gco='git checkout'
|
748
|
-
alias gc='git commit -am'
|
749
|
-
alias gi='git add -i'
|
750
|
-
alias gl='git log --oneline --all --color --graph --decorate'
|
751
|
-
alias gm='git merge'
|
752
|
-
alias gp='git push -u origin master'
|
753
|
-
alias gst='git status'
|
754
|
-
|
755
|
-
|
756
|
-
#idea
|
757
|
-
alias i='idea `pwd`'
|
758
|
-
|
759
|
-
#rubymine
|
760
|
-
alias r='rubymine `pwd`'
|
761
|
-
alias libspec="ro shortcuts lib_spec"
|
762
|
-
|
763
|
-
cdir () {
|
764
|
-
path=`ro_client navigate get_dir $1`
|
765
|
-
echo "cd $path"
|
766
|
-
cd "$path"
|
767
|
-
}
|
768
|
-
|
769
|
-
odir () {
|
770
|
-
cdir $1
|
771
|
-
rubymine .
|
772
|
-
}
|
773
|
-
|
774
|
-
# cd to project path
|
775
|
-
cpj () {
|
776
|
-
path=`ro_client navigate get_project $1`
|
777
|
-
echo "cd $path"
|
778
|
-
cd "$path"
|
779
|
-
}
|
780
|
-
|
781
|
-
pj () {
|
782
|
-
cpj $1
|
783
|
-
rubymine "$path"
|
784
|
-
}
|
785
|
-
|
786
|
-
cjpj () {
|
787
|
-
path=`ro_client navigate get_project $1 java`
|
788
|
-
echo "opening $path"
|
789
|
-
cd "$path"
|
790
|
-
}
|
791
|
-
|
792
|
-
jpj () {
|
793
|
-
path=`ro_client navigate get_project $1 java`
|
794
|
-
echo "opening $path"
|
795
|
-
cd "$path"
|
796
|
-
idea "$path"
|
797
|
-
}
|
798
|
-
|
799
|
-
alias rco="ro shortcuts open_ro_commands"
|
800
|
-
alias rsu="ro shortcuts open_ro_support"
|
801
|
-
|
802
|
-
|
803
|
-
alias spec="ro generate spec_file"
|
804
|
-
alias ex="ro generate ex"
|
805
|
-
alias dl="cd ~/Downloads"
|
806
|
-
alias sshproxy="sudo service ssh-proxy"
|
807
|
-
alias roserver="sudo service ro_server"
|
808
|
-
|
809
|
-
# cd to dir
|
810
|
-
rp () {
|
811
|
-
cd "$ruby_projects"
|
812
|
-
}
|
813
|
-
|
814
|
-
dp () {
|
815
|
-
cd "~/Dropbox"
|
816
|
-
}
|
817
|
-
|
818
|
-
# js java project
|
819
|
-
alias jp="cd $js_java_projects"
|
820
|
-
|
821
|
-
alias fas="ro_client file_actions"
|
822
|
-
alias rps="ro_client ro_procs"
|
823
|
-
alias rclocal="sudo rubymine /etc/rc.local"
|
824
|
-
alias wp='working_project'
|
825
|
-
|
826
|
-
alias work_project="cd $work_project"
|
827
|
-
alias l="cd $learn"
|
828
|
-
|
829
|
-
#find railscasts
|
830
|
-
alias rc="ro_client file_actions find_railscasts"
|
831
|
-
|
832
|
-
# reload ~/bashrc.erb
|
833
|
-
alias rb="source ~/.bashrc"
|
834
|
-
|
835
|
-
alias proxy="http_proxy='socks5://127.0.0.1:1080'"
|
836
|
-
|
837
|
-
alias jk="jekyll"
|
838
|
-
alias jks="jekyll server"
|
839
|
-
|
900
|
+
# rrjj
|
901
|
+
alias a="zeus ro rails_navigate access"
|
902
|
+
alias railswork="bundle exec ro rails_shortcuts work"
|