Sha256: 83c7e39d6097b1b5b72baa4af0a3b5f925eb831228ca21b9ce86e17ece8d4476

Contents?: true

Size: 655 Bytes

Versions: 1

Compression:

Stored size: 655 Bytes

Contents

require 'awestruct'

module Awestruct
  module Commands
    class Generate

      def initialize(dir=Dir.pwd, profile=nil, base_url=nil, default_base_url='http://localhost:4242', force=false)
        @dir              = dir
        @profile          = profile
        @base_url         = base_url
        @default_base_url = default_base_url
        @force            = force
        @engine           = Awestruct::Engine.new( @dir )
      end

      def run()
        begin
          @engine.generate( @profile, @base_url, @default_base_url, @force )
        rescue =>e
          puts e
          puts e.backtrace
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awestruct-0.0.5 lib/awestruct/commands/generate.rb