Module: Shell
- Defined in:
- lib/tabbyx/utils/shell.rb
Class Method Summary collapse
- .adb(cmd) ⇒ Object
- .adb_log(cmd) ⇒ Object
- .adb_shell(cmd) ⇒ Object
- .adb_shell_log(cmd) ⇒ Object
- .date ⇒ Object
- .process(cmd) ⇒ Object
Class Method Details
.adb(cmd) ⇒ Object
4 5 6 |
# File 'lib/tabbyx/utils/shell.rb', line 4 def self.adb(cmd) `adb #{cmd}` end |
.adb_log(cmd) ⇒ Object
20 21 22 23 24 |
# File 'lib/tabbyx/utils/shell.rb', line 20 def self.adb_log(cmd) outputs = `adb #{cmd}` puts outputs outputs end |
.adb_shell(cmd) ⇒ Object
8 9 10 |
# File 'lib/tabbyx/utils/shell.rb', line 8 def self.adb_shell(cmd) `adb shell #{cmd}` end |
.adb_shell_log(cmd) ⇒ Object
26 27 28 29 30 |
# File 'lib/tabbyx/utils/shell.rb', line 26 def self.adb_shell_log(cmd) outputs = `adb shell #{cmd}` puts outputs outputs end |
.date ⇒ Object
16 17 18 |
# File 'lib/tabbyx/utils/shell.rb', line 16 def self.date IO.popen("date") { |f| f.gets } end |
.process(cmd) ⇒ Object
12 13 14 |
# File 'lib/tabbyx/utils/shell.rb', line 12 def self.process(cmd) `#{cmd}` end |