[refs #438] Fix symlink stubbing
This commit is contained in:
parent
314506cc76
commit
9920802006
|
@ -45,5 +45,5 @@ end
|
||||||
require 'stub_xml_rpc'
|
require 'stub_xml_rpc'
|
||||||
|
|
||||||
Rails.application.config.to_prepare {
|
Rails.application.config.to_prepare {
|
||||||
Platform.send :include, Modules::Models::RsyncStub
|
Platform.send :include, Modules::Models::SymlinkStub
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
module Modules
|
module Modules
|
||||||
module Models
|
module Models
|
||||||
module RsyncStub
|
module SymlinkStub
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
|
@ -9,11 +9,11 @@ module Modules
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def mount_directory_for_rsync
|
def symlink_directory
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def umount_directory_for_rsync
|
def remove_symlink_directory
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue