Skip to content

mikowitz/motion-environment-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

motion-environment-settings

Define your environment-specific settings as YAML files, then access them easily via the Settings class inside your RubyMotion application.

Installation

Add this line to your application's Gemfile:

gem 'motion-environment-settings'

And then execute:

$ bundle

Usage

Create a YAML file of the settings you want configured by environment.

Example:

development.yml

api_host: http://localhost

production.yml

api_host: http://productionurl

By default, motion-environment-settings will look for these files in your/app/root/config/environments. You can customize this path by setting

Motion::EnvironmentSettings.config_path = "your/custom/path"

in your Rakefile.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Manage environment settings for a RubyMotion application

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages