Sha256: cf01c4c429e34dfc579eca5204fc9e7627a83bb62a6c46373f4855b2fe251087

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 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'
  require 'shopify_theme/releases'
  require 'shopify_theme/api_checker'
end

ShopifyTheme::Cli.start(ARGV)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopify_theme-0.0.25 bin/theme
shopify_theme-0.0.24 bin/theme
shopify_theme-0.0.23 bin/theme