Sha256: 832897e750ce490d5cbe4ec76951d47268d895e65526a6f997004ea43a03e815

Contents?: true

Size: 403 Bytes

Versions: 13

Compression:

Stored size: 403 Bytes

Contents

require 'pathname'

module Gamefic
  module Sdk
    module Tasks
      # Common methods for Rake tasks.
      #
      module Common
        attr_reader :directory

        def initialize directory = '.'
          @directory = directory
        end

        def absolute_path
          @absolute_path ||= Pathname.new(directory).realpath.to_s
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gamefic-sdk-2.5.0 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.4.0 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.3.3 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.3.2 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.3.1 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.3.0 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.2.0 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.1.0 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.0.4 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.0.3 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.0.2 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.0.1 lib/gamefic-sdk/tasks/common.rb
gamefic-sdk-2.0.0 lib/gamefic-sdk/tasks/common.rb