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.24.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.23.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.22.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.21.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.21.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.20.2 lib/specinfra/command/smartos/base/file.rb
specinfra-2.20.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.20.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.6 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.5 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.4 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.3 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.2 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.1 lib/specinfra/command/smartos/base/file.rb
specinfra-2.19.0 lib/specinfra/command/smartos/base/file.rb
specinfra-2.18.3 lib/specinfra/command/smartos/base/file.rb
specinfra-2.18.2 lib/specinfra/command/smartos/base/file.rb