Sha256: 9a0ff6a6e609aecbde019b5f996fc8fab4e2034d64d138eda056154f74830f76

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 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`'
  exit(1)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pieces-0.2.3 bin/pieces
pieces-0.2.2 bin/pieces
pieces-0.2.1 bin/pieces
pieces-0.2.0 bin/pieces