Sha256: 95ae9a04e7576155662f189b9182dce76b7bda8fc4a04b2af6bf0f383edc3bea

Contents?: true

Size: 427 Bytes

Versions: 28

Compression:

Stored size: 427 Bytes

Contents

module Brightbox
  module Config
    module Cache
      def cache_path
        File.join(config_directory, "cache")
      end

      def cache_id(cid)
        return if cid.nil?
        unless File.exist?(cache_path)
          begin
            FileUtils.mkpath(cache_path)
          rescue Errno::EEXIST
          end
        end
        FileUtils.touch(File.join(cache_path, cid)) unless cid.nil?
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
brightbox-cli-3.3.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-3.2.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-3.1.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-3.0.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-3.0.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.12.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.11.2 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.11.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.11.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.10.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.9.3 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.9.2 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.9.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.9.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.8.2 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.8.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.8.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.7.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.7.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-2.6.0 lib/brightbox-cli/config/cache.rb