Sha256: 2fe5fb8759c06ba773f1ffac839600843f6d9bd160af4f5314a5aab70dddc300

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

#!/usr/bin/env ruby

# This allows haravan_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 'haravan_theme'
  require 'haravan_theme/cli'
  require 'haravan_theme/releases'
  require 'haravan_theme/api_checker'
end

HaravanTheme::Cli.start(ARGV)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
haravan_theme-0.0.26 bin/theme
haravan_theme-0.0.25 bin/theme