Sha256: 611b5d4de1a514b9c930264f03de78c7f5b6456a877eb210341845d8eb486a86

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'pieces'

case ARGV[0]
when 'init'
  init_path = ARGV[1] || '.'
  Pieces::Generator.new.init(path: init_path)
  puts "Pieces placed in #{init_path}"
when 'build'
  print 'Building pieces into current directory...'
  Pieces::Builder.new.build(path: '.')
  puts 'done.'
else
  puts 'Run either `pieces init` or `pieces build`'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pieces-0.1.0 bin/pieces