Sha256: 3279295498ab6a5d431325163c3b6c146c16cf379ef0491d55569038dd2bcbb0

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

# TODO: Send patches to Specinfra

Specinfra::Command::Base::User.class_eval do
  class << self
    def update_home_directory(user, directory)
      # -m: Move the content of the user's home directory to the new location.
      "usermod -m -d #{escape(directory)} #{escape(user)}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-1.2.0 lib/itamae/ext/specinfra.rb