Sha256: f5e04f042cc77969b50934404dc5b45c26ca89d0997ac1f57a7cfe6a0366e54e

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 Bytes

Contents

module Sprite
  class Runner
    
    attr_accessor :options
    def initialize(args)
      self.options = set_options(args)
    end
    
    def set_options(args)
      opts = {}
      # TODO
      # edit options with passed in args
      opts
    end
    
    # run sprite creator
    def run!
      begin
        Sprite::Builder.from_config(options[:path]).build
      # rescue Exception => e
      #   # catch errors
      #   puts "ERROR"
      #   puts e
      #   return 1
      end
      0
    end
    
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
sprite-0.1.7 lib/sprite/runner.rb
sprite-generator-0.1.7 lib/sprite/runner.rb
sprite-0.1.6 lib/sprite/runner.rb
sprite-0.1.5 lib/sprite/runner.rb
sprite-0.1.4 lib/sprite/runner.rb
sprite-0.1.3 lib/sprite/runner.rb
sprite-0.1.2 lib/sprite/runner.rb
sprite-0.1.1 lib/sprite/runner.rb