Sha256: f8ba2704482360992204ac2b12a5324d27e557ebb6c5da91f7d844870680d9de

Contents?: true

Size: 505 Bytes

Versions: 14

Compression:

Stored size: 505 Bytes

Contents

module Svgeez
  module Commands
    class Build < Command
      def self.init_with_program(p)
        p.command(:build) do |c|
          c.description 'Builds an SVG sprite from a folder of SVG icons'
          c.syntax 'build [options]'

          add_build_options(c)

          c.action do |_, options|
            Svgeez::Commands::Build.process(options)
          end
        end
      end

      def self.process(options)
        Svgeez::SpriteBuilder.new(options).build
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
svgeez-1.0.2 lib/svgeez/commands/build.rb
svgeez-1.0.1 lib/svgeez/commands/build.rb
svgeez-1.0.0 lib/svgeez/commands/build.rb
svgeez-0.2.7 lib/svgeez/commands/build.rb
svgeez-0.2.4 lib/svgeez/commands/build.rb
svgeez-0.2.3 lib/svgeez/commands/build.rb
svgeez-0.2.2 lib/svgeez/commands/build.rb
svgeez-0.2.1 lib/svgeez/commands/build.rb
svgeez-0.2.0 lib/svgeez/commands/build.rb
svgeez-0.1.4 lib/svgeez/commands/build.rb
svgeez-0.1.3 lib/svgeez/commands/build.rb
svgeez-0.1.2 lib/svgeez/commands/build.rb
svgeez-0.1.1 lib/svgeez/commands/build.rb
svgeez-0.1.0 lib/svgeez/commands/build.rb