Sha256: 0a02674658d32847e494727a2e9f6c1a40290b5a84012a57e3d534bd0d57a271

Contents?: true

Size: 428 Bytes

Versions: 18

Compression:

Stored size: 428 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

18 entries across 18 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-5.0.0.rc2 lib/brightbox-cli/config/cache.rb
brightbox-cli-5.0.0.rc1 lib/brightbox-cli/config/cache.rb
brightbox-cli-5.0.0.alpha lib/brightbox-cli/config/cache.rb
brightbox-cli-4.8.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.7.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.6.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.5.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.5.0.rc1 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.4.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.3.2 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.3.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.3.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.2.1 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.2.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.1.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.0.0 lib/brightbox-cli/config/cache.rb
brightbox-cli-4.0.0.rc2 lib/brightbox-cli/config/cache.rb