Class: Stable::Services::Database::Base
- Inherits:
-
Object
- Object
- Stable::Services::Database::Base
- Defined in:
- lib/stable/services/database/base.rb
Instance Method Summary collapse
-
#initialize(app_name:, app_path:) ⇒ Base
constructor
A new instance of Base.
- #prepare ⇒ Object
Constructor Details
#initialize(app_name:, app_path:) ⇒ Base
7 8 9 10 |
# File 'lib/stable/services/database/base.rb', line 7 def initialize(app_name:, app_path:) @app_name = app_name @app_path = app_path end |
Instance Method Details
#prepare ⇒ Object
12 13 14 15 16 |
# File 'lib/stable/services/database/base.rb', line 12 def prepare System::Shell.run( "cd #{@app_path} && bundle exec rails db:prepare" ) end |