Skip to content

Commit

Permalink
Merge pull request #23 from lyrasis/console-config
Browse files Browse the repository at this point in the history
Consistent console config; README examples
  • Loading branch information
mark-cooper authored Jul 9, 2024
2 parents 3758efe + ffae230 commit f7905e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ client = ArchivesSpace::Client.new.login

```ruby
config = ArchivesSpace::Configuration.new({
base_uri: "https://archives.university.edu/api",
base_uri: "https://archives.university.edu/staff/api",
base_repo: "",
username: "admin",
password: "123456",
Expand Down Expand Up @@ -128,7 +128,7 @@ Create an `~/.asclientrc` file with a json version of the client configuration:

```json
{
"base_uri": "https://archives.university.edu/api",
"base_uri": "https://archives.university.edu/staff/api",
"base_repo": "",
"username": "admin",
"password": "123456",
Expand Down
10 changes: 1 addition & 9 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ require "bundler/setup"
require "archivesspace/client"

config = ArchivesSpace::Configuration.new(
{
base_uri: "https://test.archivesspace.org/staff/api",
base_repo: "",
username: "admin",
password: "admin",
page_size: 50,
throttle: 0,
verify_ssl: false
}
ArchivesSpace::Client::CLI.find_config
)
@client = ArchivesSpace::Client.new(config).login

Expand Down

0 comments on commit f7905e2

Please sign in to comment.