Spec-Zone.ru › Ruby 2.6

класс Bundler::PermissionError

Родитель:
Bundler::BundlerError

Публичные Классовые Методы

new(path, permission_type = :write) Показать исходный код
# File lib/bundler/errors.rb, line 63
def initialize(path, permission_type = :write)
  @path = path
  @permission_type = permission_type
end

Публичные Методы Экземпляров

action() Показать исходный код
# File lib/bundler/errors.rb, line 68
def action
  case @permission_type
  when :read then "read from"
  when :write then "write to"
  when :executable, :exec then "execute"
  else @permission_type.to_s
  end
end
message() Показать исходный код
# File lib/bundler/errors.rb, line 77
def message
  "There was an error while trying to #{action} `#{@path}`. " \
  "It is likely that you need to grant #{@permission_type} permissions " \
  "for that path."
end

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API