Exception: Machinery::Errors::BuildDirectoryCreateError

Inherits:
MachineryError show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(directory, user) ⇒ BuildDirectoryCreateError

Returns a new instance of BuildDirectoryCreateError.



207
208
209
210
# File 'lib/exceptions.rb', line 207

def initialize(directory, user)
  @directory = directory
  @user = user
end

Instance Method Details

#to_sObject



212
213
214
215
# File 'lib/exceptions.rb', line 212

def to_s
  "Could not create build directory '#{@directory}' because the user '#{@user}' does not " \
    "have sufficient permissions."
end