Build Status Code Climate Coverage Status

ember_cli_deploy_redis

Ruby interaction with ember-cli-deploy-redis to support ember-cli project deployments.

ember-cli-deploy-redis stores deployment information including the index page contents in Redis, and this gem allows access to it so that it can be served.

Installing

  gem install ember_cli_deploy_redis

Or if you are using bundler add to your Gemfile:

  gem ember_cli_deploy_redis, '~> 0.0.1'

Usage

The following errors may be raised by the methods mentioned below:

  • EmberCliDeployRedis::NoDeployments
  • EmberCliDeployRedis::FileMissingFromDeployment

Configuration

EmberCliDeployRedis.configure do |config|
  config.app_name = "ember_cli_project_name"
  # Optional:
  config.keyspace = "optional_redis_keyspace"
end

Getting deployed revisions

  EmberCliDeployRedis.revisions

Getting the latest deployed revision

  EmberCliDeployRedis.latest_revision

Getting the contents of a deployed file

  EmberCliDeployRedis.latest_revision.contents_of('index.html')

To Do

  • Support for the activated revision instead of just the most recent.