Sha256: ff3adde2f3bae3b0bbfb5d00b65f8ce6a3aa7e346426731342008d0f8530c1e9

Contents?: true

Size: 553 Bytes

Versions: 8

Compression:

Stored size: 553 Bytes

Contents

module Trickster
  class ThemeCopier < Copier
    # Copies the theme from the trickster install into the @destination_root
    def copy_theme(theme)
      extension = %w(.css .scss).find { |extension| File.exists?(trickster_css_file(theme,extension)) }
      destination_file = File.join(@destination_root,'css','theme' + extension)
      FileUtils.cp trickster_css_file(theme,extension),destination_file
    end

  private

    def trickster_css_file(theme,extension)
      (File.join(@install_root,'css','themes',theme + extension))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trickster-1.4.0 lib/trickster/theme_copier.rb
trickster-1.3.1 lib/trickster/theme_copier.rb
trickster-1.3.0 lib/trickster/theme_copier.rb
trickster-1.2.0 lib/trickster/theme_copier.rb
trickster-1.1.0 lib/trickster/theme_copier.rb
trickster-1.0.0 lib/trickster/theme_copier.rb
trickster-0.0.6 lib/trickster/theme_copier.rb
trickster-0.0.5 lib/trickster/theme_copier.rb