Class: IconCreater::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/iconCreater.rb

Instance Method Summary collapse

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/iconCreater.rb', line 9

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