Sha256: be94998df7b24ae4a16ed371b8659aa0d477a3454b4e8e764e9f6041d0f9de07

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

require "iconCreater/version"
require 'iconCreater/input'
require 'iconCreater/create'
require 'iconCreater/parser'

module IconCreater

  class Run
    def run
      inp =  Parser.new.parse
      creat = Create.new({"Icon57.png" => 57,
                          "Icon57@2x.png"=> 114,
                          "Icon-60.png"=> 60,
                          "Icon-60@2x.png"=> 120,
                          "Icon-60@3x.png"=> 180,
                          "Icon-72.png"=> 72,
                          "Icon-72@2x.png"=> 144,
                          "Icon-76.png"=> 76,
                          "Icon-76@2x.png"=> 152,
                          "Icon-40-iOS7.png"=> 40,
                          "Icon-40-iOS7@2x.png"=> 80,
                          "Icon-40-iOS7@3x.png"=> 120,
                          "Icon-50.png"=> 50,
                          "Icon-50@2x.png"=> 100,
                          "Icon-29.png"=> 29,
                          "Icon-29@2x.png"=> 58,
                          "Icon-29@3x.png"=> 87});
      creat.createicon(inp.iconPath,inp.outputPath)
    end
  end

  Run.new.run
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iconCreater-0.2.5 lib/iconCreater.rb