Module: Cloner::Internal
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/cloner/internal.rb
Instance Method Summary collapse
Methods included from RSync
#rsync, #rsync_compression, #rsync_flags, #rsync_public
Methods included from SSH
#check_ssh_err, #do_ssh, #ssh_exec!, #ssh_opts
Methods included from MySQL
#clone_my, #my_bin_path, #my_dump_copy, #my_dump_param, #my_dump_remote, #my_dump_restore, #my_local_auth, #my_path, #my_remote_auth, #my_restore_param
Methods included from Postgres
#clone_pg, #pg_bin_path, #pg_dump_copy, #pg_dump_extra, #pg_dump_param, #pg_dump_remote, #pg_dump_restore, #pg_local_auth, #pg_local_bin_path, #pg_path, #pg_remote_auth, #pg_remote_bin_path, #pg_restore_param
Methods included from Ar
#ar_conf, #ar_r_conf, #ar_to, #clone_ar, #clone_databases, #db_file_name, #env_database, #multi_db?, #read_ar_conf, #read_ar_r_conf, #run_clone_ar
Methods included from MongoDB
#clone_mongodb, #mongodb_conf, #mongodb_dump_copy, #mongodb_dump_extra, #mongodb_dump_remote, #mongodb_dump_restore, #mongodb_local_auth, #mongodb_path, #mongodb_r_conf, #mongodb_to
Instance Method Details
#clone_db ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/cloner/internal.rb', line 28 def clone_db if defined?(Mongoid) clone_mongodb else clone_ar end end |
#e(str) ⇒ Object
10 11 12 |
# File 'lib/cloner/internal.rb', line 10 def e(str) Shellwords.escape(str) end |
#env_from ⇒ Object
24 25 26 |
# File 'lib/cloner/internal.rb', line 24 def env_from ENV['CLONE_FROM'] || 'production' end |
#load_env ⇒ Object
14 15 16 17 18 19 |
# File 'lib/cloner/internal.rb', line 14 def load_env unless defined?(Rails) require rails_path end require 'net/ssh' end |
#verbose? ⇒ Boolean
21 22 23 |
# File 'lib/cloner/internal.rb', line 21 def verbose? false end |