Sha256: 176c5dadd6eadf915900fd275ffc3356c13e829d4aa73bb0f8d497f7c09504ca

Contents?: true

Size: 273 Bytes

Versions: 8

Compression:

Stored size: 273 Bytes

Contents

# encoding: UTF-8

module Anvil
  class Task
    # Tools to work with github repositories
    module Repositories
      def resolve_url(url)
        if url =~ /^\w+\/\w+$/
          "git@github.com:#{url}"
        else
          url
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
anvil-core-0.4.2 lib/anvil/task/repositories.rb
anvil-core-0.4.1 lib/anvil/task/repositories.rb
anvil-core-0.4.0 lib/anvil/task/repositories.rb
anvil-core-0.3.2 lib/anvil/task/repositories.rb
anvil-core-0.3.1 lib/anvil/task/repositories.rb
anvil-core-0.3.0 lib/anvil/task/repositories.rb
anvil-core-0.2.0 lib/anvil/task/repositories.rb
anvil-core-0.1.0 lib/anvil/task/repositories.rb