Skip to content

Commit 95c905e

Browse files
committed
Adding bin/sprite runner
1 parent 04dd536 commit 95c905e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

bin/sprite

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
# The compass command line utility
3+
4+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'sprite'))
5+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'sprite', 'runner'))
6+
7+
command = Sprite::Runner.new(ARGV)
8+
exit command.run!

lib/sprite/runner.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module Sprite
2+
class Runner
3+
4+
attr_accessor :options
5+
def initialize(args)
6+
self.args = args
7+
self.options = {}
8+
parse(args)
9+
end
10+
11+
def parse(args)
12+
# TODO: edit options with passed in args
13+
end
14+
15+
# run sprite creator
16+
def run!
17+
# TODO
18+
end
19+
20+
end
21+
end

0 commit comments

Comments
 (0)