Sha256: 1397ec5b96c94b55b70711fd992212a76ee9c652da278765b63d07947921139b

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

#!/usr/bin/env ruby

# This allows shopify_theme to run easily from a git checkout without install.
# Hat tip to chriseppstein of Compass fame for the code for this
def fallback_load_path(path)
  retried = false
  begin
    yield
  rescue LoadError
    unless retried
      $: << path
      retried = true
      retry
    end
    raise
  end
end

fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
  require 'shopify_theme'
  require 'shopify_theme/cli'
end

ShopifyTheme::Cli.start(ARGV)

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
dev_shopify_theme-0.0.21 bin/dev-theme
shopify_theme-0.0.21 bin/theme
shopify_theme-0.0.20 bin/theme
shopify_theme-0.0.19 bin/theme
shopify_theme-0.0.18 bin/theme