Sha256: ff384066c8ffbbd38930e3a91be4716ac462bdb3641e44b661e5a9945678d510

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

#!/usr/bin/env ruby
$: << 'lib'
require 'gram'

component = ARGV.shift
action = ARGV.shift
args = ARGV

raise "Unknown Gram component. Available components are: #{Gram::COMPONENTS.join(', ')}" unless Gram::COMPONENTS.include?(component)

component_klass = eval("Gram::#{component.capitalize}")

raise "Unknown action for #{component} component.\n#{component_klass.banner}\n" unless component_klass::ACTIONS.keys.map(&:to_s).include?(action)

component_klass.send(action, *args)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gram-0.3.0 bin/gram
gram-0.2.0 bin/gram
gram-0.1.0 bin/gram