Class: RoCommands::Shortcuts
- Inherits:
-
Base
show all
- Defined in:
- lib/ro_commands/shortcuts.rb
Instance Method Summary
collapse
Methods inherited from Base
describe, inherited, method_added, meths, start, usage
Methods included from Bash
#_bash, #add_time, #bash, #bash_capture, #bash_capture_array, #bash_lines, #bash_per, #bash_system, #bundle_exec, #err, err, #handle_path, #kernel_system, out, #out, #status, status
Instance Method Details
35
36
37
38
39
40
41
|
# File 'lib/ro_commands/shortcuts.rb', line 35
def lib_spec
hide_guake
push_to_opposite
next_splitter
sleep 0.1
switch_btw_lib_and_spec
end
|
#open_ro_commands ⇒ Object
47
48
49
|
# File 'lib/ro_commands/shortcuts.rb', line 47
def open_ro_commands
open_project("ro_commands")
end
|
#open_ro_support ⇒ Object
53
54
55
|
# File 'lib/ro_commands/shortcuts.rb', line 53
def open_ro_support
open_project("ro_support")
end
|
#rubymine_rails_debug(file, line, current_project) ⇒ Object
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/ro_commands/shortcuts.rb', line 59
def rubymine_rails_debug(file, line, current_project)
project_name = File.basename(current_project).gsub(%r{\.\w+$}, "")
windowid = search_window("rubymine", project_name)
window_activate(windowid)
if is_gem_file?(file)
rubymine_open_file(file, line)
else
file_path = File.join(current_project, file)
rubymine_open_file(file_path, line)
end
end
|
27
28
29
30
31
|
# File 'lib/ro_commands/shortcuts.rb', line 27
def work
bx "zeus start"
bx "rails server"
bx "guard"
end
|