Module: DBGet::Binaries

Included in:
Loaders::MySql
Defined in:
lib/dbget/binaries.rb

Class Method Summary collapse

Class Method Details

.find_cmdObject



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_cmdObject



11
12
13
# File 'lib/dbget/binaries.rb', line 11

def self.mongorestore_cmd
  get_binary('mongorestore')
end

.mysql_cmdObject



7
8
9
# File 'lib/dbget/binaries.rb', line 7

def self.mysql_cmd
  get_binary('mysql')
end

.tar_cmdObject



19
20
21
# File 'lib/dbget/binaries.rb', line 19

def self.tar_cmd
  get_binary('tar')
end