Class: StoreAgent::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/store_agent/config.rb

Overview

設定を保持するためのクラス
設定可能な項目は、StoreAgent.config を参照

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

:nodoc:



127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/store_agent/config.rb', line 127

def initialize # :nodoc:
  @storage_root = "/tmp/store_agent"
  @storage_dirname = "/storage"
  @metadata_dirname = "/metadata"
  @permission_dirname = "/permission"
  @metadata_extension = ".meta"
  @permission_extension = ".perm"
  @superuser_identifier = "root"
  @guest_identifier = "nobody"
  @version_manager = StoreAgent::VersionManager
  @storage_data_encoders = []
  @attachment_data_encoders = []
  @reserved_filenames = %w(. ..)
  @lock_timeout = 0.1
  @default_directory_bytesize_limit = 2 ** 30
  @default_owner_permission = {
    "read" => true,
    "write" => true,
    "execute" => true
  }
  @default_guest_permission = {}
end

Instance Attribute Details

#attachment_data_encodersObject

Returns the value of attribute attachment_data_encoders.



119
120
121
# File 'lib/store_agent/config.rb', line 119

def attachment_data_encoders
  @attachment_data_encoders
end

#default_directory_bytesize_limitObject

Returns the value of attribute default_directory_bytesize_limit.



122
123
124
# File 'lib/store_agent/config.rb', line 122

def default_directory_bytesize_limit
  @default_directory_bytesize_limit
end

#default_guest_permissionObject

Returns the value of attribute default_guest_permission.



125
126
127
# File 'lib/store_agent/config.rb', line 125

def default_guest_permission
  @default_guest_permission
end

#default_owner_permissionObject

Returns the value of attribute default_owner_permission.



124
125
126
# File 'lib/store_agent/config.rb', line 124

def default_owner_permission
  @default_owner_permission
end

#guest_identifierObject

Returns the value of attribute guest_identifier.



116
117
118
# File 'lib/store_agent/config.rb', line 116

def guest_identifier
  @guest_identifier
end

#json_indent_levelObject

Returns the value of attribute json_indent_level.



123
124
125
# File 'lib/store_agent/config.rb', line 123

def json_indent_level
  @json_indent_level
end

#lock_timeoutObject

Returns the value of attribute lock_timeout.



121
122
123
# File 'lib/store_agent/config.rb', line 121

def lock_timeout
  @lock_timeout
end

#metadata_dirnameObject

Returns the value of attribute metadata_dirname.



111
112
113
# File 'lib/store_agent/config.rb', line 111

def 
  @metadata_dirname
end

#metadata_extensionObject

Returns the value of attribute metadata_extension.



113
114
115
# File 'lib/store_agent/config.rb', line 113

def 
  @metadata_extension
end

#permission_dirnameObject

Returns the value of attribute permission_dirname.



112
113
114
# File 'lib/store_agent/config.rb', line 112

def permission_dirname
  @permission_dirname
end

#permission_extensionObject

Returns the value of attribute permission_extension.



114
115
116
# File 'lib/store_agent/config.rb', line 114

def permission_extension
  @permission_extension
end

#reserved_filenamesObject

Returns the value of attribute reserved_filenames.



120
121
122
# File 'lib/store_agent/config.rb', line 120

def reserved_filenames
  @reserved_filenames
end

#storage_data_encodersObject

Returns the value of attribute storage_data_encoders.



118
119
120
# File 'lib/store_agent/config.rb', line 118

def storage_data_encoders
  @storage_data_encoders
end

#storage_dirnameObject

Returns the value of attribute storage_dirname.



110
111
112
# File 'lib/store_agent/config.rb', line 110

def storage_dirname
  @storage_dirname
end

#storage_rootObject

:enddoc:



109
110
111
# File 'lib/store_agent/config.rb', line 109

def storage_root
  @storage_root
end

#superuser_identifierObject

Returns the value of attribute superuser_identifier.



115
116
117
# File 'lib/store_agent/config.rb', line 115

def superuser_identifier
  @superuser_identifier
end

#version_managerObject

Returns the value of attribute version_manager.



117
118
119
# File 'lib/store_agent/config.rb', line 117

def version_manager
  @version_manager
end