Module: DBGet::Binaries
- Included in:
- Loaders::MySql
- Defined in:
- lib/dbget/binaries.rb
Class Method Summary collapse
- .find_cmd ⇒ Object
- .get_binary(bin) ⇒ Object
- .mongorestore_cmd ⇒ Object
- .mysql_cmd ⇒ Object
- .tar_cmd ⇒ Object
Class Method Details
.find_cmd ⇒ Object
15 16 17 |
# File 'lib/dbget/binaries.rb', line 15 def self.find_cmd get_binary('find') end |
.get_binary(bin) ⇒ Object
3 4 5 |
# File 'lib/dbget/binaries.rb', line 3 def self.get_binary(bin) `which #{bin}`.chomp end |
.mongorestore_cmd ⇒ Object
11 12 13 |
# File 'lib/dbget/binaries.rb', line 11 def self.mongorestore_cmd get_binary('mongorestore') end |
.mysql_cmd ⇒ Object
7 8 9 |
# File 'lib/dbget/binaries.rb', line 7 def self.mysql_cmd get_binary('mysql') end |
.tar_cmd ⇒ Object
19 20 21 |
# File 'lib/dbget/binaries.rb', line 19 def self.tar_cmd get_binary('tar') end |