FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
contentstack-ruby/rakefile.rb at development · contentstack/contentstack-ruby · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
contentstack
/
contentstack-ruby
Public
Notifications
You must be signed in to change notification settings
Fork
7
Star
5
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
contentstack-ruby
/
rakefile.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (12 loc) · 531 Bytes
Breadcrumbs
contentstack-ruby
/
rakefile.rb
Copy path
File metadata and controls
13 lines (12 loc) · 531 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
require
'yard'
YARD
::
Rake
::
YardocTask
.
new
do
|
t
|
t
.
files
=
[
"README.rdoc"
,
'lib/contentstack/*.rb'
,
'lib/contentstack.rb'
]
end
desc
'Download the latest region metadata from the Contentstack registry and update lib/data/regions.json'
task
:refresh_regions
do
require_relative
'lib/contentstack/endpoint'
require_relative
'lib/contentstack/error'
puts
'Fetching latest region metadata from registry...'
Contentstack
::
Endpoint
.
refresh_regions
puts
"regions.json updated at:
#{
Contentstack
::
Endpoint
::
DATA_FILE_PATH
}
"
end
Back
|
FazBrowse Home
|
New Git URL