Sha256: 3b0b11e5a57e30871aa81d80e0c9ac7895eb084df507f31e0e984feb0f2bb9ac
Contents?: true
Size: 794 Bytes
Versions: 2
Compression:
Stored size: 794 Bytes
Contents
module AmicoDb class Configuration attr_accessor :ssh_user attr_accessor :host attr_accessor :remote_app_path attr_accessor :folder_dump attr_accessor :local_path attr_accessor :db_name attr_accessor :db_user attr_accessor :db_dev_dbname attr_accessor :db_dev_username def initialize self.ssh_user = 'user' self.host = 'www.example.com' self.remote_app_path = '/var/www/yourproject' self.folder_dump = '/dumps/db.sql' self.local_path = './dumps/db.sql' self.db_name = 'dbname' self.db_user = 'dbusername' self.db_dev_dbname = 'dbname' self.db_dev_username = 'dbdevname' end # ex: /var/www/yourproject/db.sql def remote_path "#{remote_app_path}#{folder_dump}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amico-db-0.1.8 | lib/amico-db/configuration.rb |
amico-db-0.1.7 | lib/amico-db/configuration.rb |