Sha256: fe1681e4e57e9cb97a6b2572646ea2f092fdcfb17c4b2d4468270ca327ddb658

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

#!/usr/bin/env ruby

require File.expand_path(
    File.join(File.dirname(__FILE__), '..', 'lib', 'iconoclast'))

Main do
  
  description <<-EOS
  Iconoclast icons!

  Gives you the ability to add, refresh, and remove famfamfam icons in your rails/merb app
  EOS

  examples <<-EOS
    To add famfamfam icons to your app

    	cd /your/rails/app/dir  

    	famify #copies icons to public/images

    	famify my_images/icons #copies icons to /your/rails/apps/dir/myimages/icons

    To remove famfamfam icons from your app (and only famfamfam icons)

    	famify remove #removes only famfamfam icons from public/images

    	famify remove my_images/icons #removes only famfamfam icons from /your/rails/apps/dir/myimages/icons

  EOS

  mixin :path_argument do
    argument "path" do
      argument_optional
      attribute
      default File.expand_path("." + "/public/images")
    end
  end

  mode "remove" do
    mixin :path_argument
    run do
      Iconoclast.remove_icons path
    end
  end

  mode "refresh" do
    mixin :path_argument
    run do
      Iconoclast.remove_icons path
      Iconoclast.copy_icons path
    end
  end

  mixin :path_argument

  run do
    Iconoclast.copy_icons path
  end
end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iconoclast-0.0.1 bin/iconify