Sha256: 43a5d197f4aec7c968e2bb7ff5a8a1a9439ca51c7bfb72ebd70172b77b0dc977

Contents?: true

Size: 353 Bytes

Versions: 277

Compression:

Stored size: 353 Bytes

Contents

class Specinfra::Command::Smartos::Base::File < Specinfra::Command::Solaris::Base::File
  class << self
    def get_md5sum(file)
      "/usr/bin/digest -a md5 -v #{escape(file)} | cut -d '=' -f 2 |  cut -c 2-"
    end
    
    def get_sha256sum(file)
      "/usr/bin/digest -a sha256 -v #{escape(file)} | cut -d '=' -f 2 |  cut -c 2-"
    end
  end
end

Version data entries

277 entries across 277 versions & 3 rubygems

Version Path
specinfra-2.36.3 lib/specinfra/command/smartos/base/file.rb
specinfra-2.36.2 lib/specinfra/command/smartos/base/file.rb
specinfra-2.36.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.36.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.35.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.35.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.9 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.8 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.7 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.6 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.5 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.4 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.3 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.2 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.34.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.33.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.33.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.32.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.31.1 lib/specinfra/command/smartos/base/file.rb