brick_ftp 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/brick_ftp.rb +1 -0
- data/lib/brick_ftp/api/site_usage.rb +21 -0
- data/lib/brick_ftp/client.rb +6 -0
- data/lib/brick_ftp/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ccc04291b5b8b7f7f51257f844ee9061d11221
|
4
|
+
data.tar.gz: 5dc14fa8240e3242aeac9f613760e1b28dd442df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74ddc3854f64857abb6ee9655883df0f48c964a472f430be09c5fca4c6885ea4c20b0467f708606f1fd0ffc8a1263c0ff96c5504d050025278993487cbfec3b
|
7
|
+
data.tar.gz: cc6eb4f0ef1b66cd33b05383f0225b485445da9d1c76562456ea2b794bdac2ca60b986ef77f554a049748e2ddf8129634f026f2a7397cdb300d75e4829d25954
|
data/lib/brick_ftp.rb
CHANGED
@@ -32,6 +32,7 @@ require 'brick_ftp/api/file_operation'
|
|
32
32
|
require 'brick_ftp/api/file_operation/move'
|
33
33
|
require 'brick_ftp/api/file_operation/copy'
|
34
34
|
require 'brick_ftp/api/file_operation/upload'
|
35
|
+
require 'brick_ftp/api/site_usage'
|
35
36
|
|
36
37
|
module BrickFTP
|
37
38
|
# Return configuration.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module BrickFTP
|
2
|
+
module API
|
3
|
+
class SiteUsage < Base
|
4
|
+
endpoint :get, :show, '/api/rest/v1/site/usage'
|
5
|
+
|
6
|
+
attribute :id
|
7
|
+
attribute :live_current_storage
|
8
|
+
attribute :current_storage
|
9
|
+
attribute :usage_by_top_level_dir
|
10
|
+
attribute :high_water_storage
|
11
|
+
attribute :start_at
|
12
|
+
attribute :end_at
|
13
|
+
attribute :created_at
|
14
|
+
attribute :updated_at
|
15
|
+
|
16
|
+
def self.find
|
17
|
+
super('')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/brick_ftp/client.rb
CHANGED
@@ -356,5 +356,11 @@ module BrickFTP
|
|
356
356
|
def upload_file(path:, source:)
|
357
357
|
BrickFTP::API::FileOperation::Upload.create(path: path, source: source)
|
358
358
|
end
|
359
|
+
|
360
|
+
# Get usage of site.
|
361
|
+
# @return [BrickFTP::API::SiteUsage]
|
362
|
+
def site_usage
|
363
|
+
BrickFTP::API::SiteUsage.find
|
364
|
+
end
|
359
365
|
end
|
360
366
|
end
|
data/lib/brick_ftp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brick_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- lib/brick_ftp/api/notification.rb
|
152
152
|
- lib/brick_ftp/api/permission.rb
|
153
153
|
- lib/brick_ftp/api/public_key.rb
|
154
|
+
- lib/brick_ftp/api/site_usage.rb
|
154
155
|
- lib/brick_ftp/api/user.rb
|
155
156
|
- lib/brick_ftp/api_component.rb
|
156
157
|
- lib/brick_ftp/api_definition.rb
|