Class: Kuby::Plugins::RailsApp::Sqlite

Inherits:
Kuby::Plugin show all
Defined in:
lib/kuby/plugins/rails_app/sqlite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Kuby::Plugin

#after_deploy, #after_setup, #before_deploy, #before_setup, #configure, dependencies, depends_on, #docker_images, #remove, #resources, #setup, task_dirs

Constructor Details

#initialize(environment, *_) ⇒ Sqlite

Returns a new instance of Sqlite.



9
10
11
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 9

def initialize(environment, *_)
  @environment = environment
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



7
8
9
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 7

def environment
  @environment
end

Instance Method Details

#after_configurationObject



13
14
15
16
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 13

def after_configuration
  environment.docker.package_phase.add(:sqlite_dev)
  environment.docker.package_phase.add(:sqlite_client)
end

#bootstrapObject



22
23
24
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 22

def bootstrap
  # no boostrap steps necessary
end

#configure_pod_spec(_pod_spec) ⇒ Object



18
19
20
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 18

def configure_pod_spec(_pod_spec)
  # no configuration steps necessary
end

#nameObject



34
35
36
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 34

def name
  :sqlite
end

#password(_password) ⇒ Object



30
31
32
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 30

def password(_password)
  raise 'SQLite databases do not require a username or password'
end

#user(_user) ⇒ Object



26
27
28
# File 'lib/kuby/plugins/rails_app/sqlite.rb', line 26

def user(_user)
  raise 'SQLite databases do not require a username or password'
end