Sha256: 7ff5a5819ba1aae4e5523eefa181280e0343d4407e74890f0bde938bc80b2f5f

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

require "mobilis/generic_project"

module Mobilis
class RedisInstance < GenericProject

def generate
  FileUtils.mkdir_p data_dir
end

def child_env_vars
  [
    "REDIS_HOST=#{ name }",
    "REDIS_PORT=6379",
    "REDIS_PASSWORD=#{ password }"
  ]
end

def data_dir
  "./data/#{ name }"
end

def has_local_build
  false
end

def username
  name
end

def password
  "#{name}_password"
end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mobilis-0.0.5 lib/mobilis/redis_instance.rb
mobilis-0.0.4 lib/mobilis/redis_instance.rb
mobilis-0.0.3 lib/mobilis/redis_instance.rb
mobilis-0.0.2 lib/mobilis/redis_instance.rb
mobilis-0.0.1 lib/mobilis/redis_instance.rb