Sha256: 929f425449fb31dba9ed672ef969beccb972d8901f92851cef6ba5767819580d

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

module Minke
  module Commands
    class Swift
      def commands config
        {
          :build => {
            :build => ['swift', 'build', '-Xcc', '-fblocks'],
            :test => ['ls', '-ls'],
          },
          :docker => {
            :image => 'ibmcom/kitura-ubuntu:latest',
            :binds => ["#{source_directory}:/src"],
            :working_directory => "/src"
          }
        }
      end

      def source_directory
        Dir.pwd if File.exists?('Package.swift')
        File.expand_path('../.') if File.exists?('../Package.swift')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minke-0.14.0 lib/minke/commands/swift.rb