Giter VIP home page Giter VIP logo

roku's Introduction

Roku Toolkit

A simple set of Roku development tools to ease and simplify deployment. Tested on OSX and Linux, should work on Windows.

Installation

Add this line to your application's Gemfile:

gem 'roku'

And then execute:

$ bundle

Or install it yourself as:

$ gem install roku

Configuration

In order to use the Roku Toolkit, you must first initialize a roku.yml file. You have two options for placement of the roku.yml file.

Home Directory / Global Configuration (recommended if you only have one project)

This method is recommended if you only have one Roku project because it will allow you to run the roku command from any directory, including sub directories and from paths outside of your project root.

File location:

  • Unix/OSX: ~/roku.yml or /Users/<username>/roku.yml
  • Windows XP: <root>\Documents and Settings\<username>
  • Windows Vista and Up: <root>\Users\<username>\roku.yml

Example File:

ip          : "192.168.1.6"
username    : "rokudev"
password    : "1234"
directory   : "/Users/exampleuser/code/brightscript/example_project"

Note: It is important to note the additional directory key that is required for Global Configuration so that the Roku Toolkit may know where your project lives.

Project Configuration (recommended for multiple projects)

This method is recommended for multiple Roku projects because it allows for per-directory based configuration files. The downside to this method is that you must ensure you run the roku command from the project root where your roku.yml file is located.

File Location:

  • File location should be the root of your project. (ie: ~/code/brightscript/example_project/roku.yml)

Example File:

ip          : "192.168.1.6"
username    : "rokudev"
password    : "1234"

Build Output

By default builds will output to a temporary directory. You may specify the build output in the roku.yml configuration file with the key output.

Example File:

ip          : "192.168.1.6"
username    : "rokudev"
password    : "1234"
directory   : "/Users/exampleuser/code/brightscript/example_project"
output      : "/Users/exampleuser/code/brightscript/example_project/builds/roku.zip"

Note: You may use Time conversion specifications in the output name.

output      : "/Users/exampleuser/code/brightscript/example_project/builds/roku-%m-%d-%Y.zip"
# Translates into "/Users/exampleuser/code/brightscript/example_project/builds/roku-01-20-2015.zip"

Usage

Depending on your configuration (see above), simply run roku from your command line to build and deploy your project to your Roku development box.

Contributing

  1. Fork it ( http://github.com//roku/fork )
  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

roku's People

Contributors

stephenbaldwin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

roku's Issues

error when running roku

I get the following error when i run roku
roku
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in parse': (/Users/saleem/Desktop/roku-master/roku.yml): did not find expected key while parsing a block mapping at line 1 column 1 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:inparse_stream'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in parse' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:inload'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in block in load_file' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:inopen'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in load_file' from /Library/Ruby/Gems/2.0.0/gems/roku-0.0.4/lib/roku/config.rb:36:infetch_config'
from /Library/Ruby/Gems/2.0.0/gems/roku-0.0.4/lib/roku/config.rb:15:in config' from /Library/Ruby/Gems/2.0.0/gems/roku-0.0.4/lib/roku/config.rb:9:inensure_config!'
from /Library/Ruby/Gems/2.0.0/gems/roku-0.0.4/lib/roku.rb:12:in <module:Roku>' from /Library/Ruby/Gems/2.0.0/gems/roku-0.0.4/lib/roku.rb:6:in<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /Library/Ruby/Gems/2.0.0/gems/roku-0.0.4/bin/roku:3:in <top (required)>' from /usr/local/bin/roku:23:inload'
from /usr/local/bin/roku:23:in `

'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.