Skip to content

Commit

Permalink
rename to mantle (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey authored Nov 16, 2021
1 parent f8c7006 commit 9815564
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 60 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
- name: Zip binary
uses: thedoctor0/[email protected]
with:
filename: rocat-win64.zip
path: target/release/rocat.exe
filename: mantle-win64.zip
path: target/release/mantle.exe
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: rocat-win64
path: rocat-win64.zip
name: mantle-win64
path: mantle-win64.zip
macos:
runs-on: macos-latest
steps:
Expand All @@ -56,13 +56,13 @@ jobs:
- name: Zip binary
uses: thedoctor0/[email protected]
with:
filename: rocat-macos.zip
path: target/release/rocat
filename: mantle-macos.zip
path: target/release/mantle
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: rocat-macos
path: rocat-macos.zip
name: mantle-macos
path: mantle-macos.zip
linux:
runs-on: ubuntu-latest
steps:
Expand All @@ -83,13 +83,13 @@ jobs:
- name: Zip binary
uses: thedoctor0/[email protected]
with:
filename: rocat-linux.zip
path: target/release/rocat
filename: mantle-linux.zip
path: target/release/mantle
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: rocat-linux
path: rocat-linux.zip
name: mantle-linux
path: mantle-linux.zip
release:
runs-on: ubuntu-latest
needs: [windows, macos, linux]
Expand Down
48 changes: 24 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "rocat"
name = "mantle"
version = "0.8.2"
authors = ["Blake Mealey <[email protected]>"]
edition = "2018"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rocat 🚀
# Mantle 🚀

An infrastructure-as-code and deployment tool for Roblox.

Expand All @@ -13,12 +13,12 @@ It is recommended to install with Foreman, with the following config:
# foreman.toml

[tools]
rocat = { source = "blake-mealey/rocat", version = "0.8.2" }
mantle = { source = "blake-mealey/mantle", version = "0.8.2" }
```

You can learn more about Foreman including how to install it from [its
documentation](https://github.com/Roblox/foreman#readme).

## Documentation

Check out the [docs site](https://rocat-docs.vercel.app) for more info.
Check out the [docs site](https://mantle-docs.vercel.app) for more info.
4 changes: 2 additions & 2 deletions bump-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Get-PackageVersion() {
}

$PackageMeta = ConvertFrom-Json -InputObject $PackageMetaRaw
return ($PackageMeta.packages | where { $_.name -eq "rocat" }).version
return ($PackageMeta.packages | where { $_.name -eq "mantle" }).version
}

function Undo-Changes() {
Expand Down Expand Up @@ -117,7 +117,7 @@ function Invoke-BumpVersion() {
return
}

Write-Host "🎉 Bumped Rocat version to $NextVersion. Ready to push with 'git push origin && git push --tags'`n"
Write-Host "🎉 Bumped Mantle version to $NextVersion. Ready to push with 'git push origin && git push --tags'`n"

$choices = "&Yes", "&No"
$selectedIndex = $Host.UI.PromptForChoice($Null, "Automatically push changes to Git?", $choices, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ templates:
state:
remote:
region: [us-west-2]
bucket: rocat-states
key: project-fixtures/single-place
bucket: mantle-states
key: project-fixtures/dev
16 changes: 8 additions & 8 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ use clap::{crate_version, App, AppSettings, Arg, SubCommand};
use std::env;

fn get_app() -> App<'static, 'static> {
App::new("Rocat")
App::new("Mantle")
.version(crate_version!())
.about("Manages Roblox deployments")
.setting(AppSettings::ArgRequiredElseHelp)
.subcommand(
SubCommand::with_name("deploy")
.about("Deploys a Rocat deployment")
.about("Deploys a Mantle deployment")
.arg(
Arg::with_name("PROJECT")
.index(1)
.help("The Rocat project: either the path to a directory containing a 'rocat.yml' file or the path to a configuration file. Defaults to the current directory.")
.help("The Mantle project: either the path to a directory containing a 'mantle.yml' file or the path to a configuration file. Defaults to the current directory.")
.takes_value(true)
)
.arg(
Expand All @@ -27,15 +27,15 @@ fn get_app() -> App<'static, 'static> {
.arg(
Arg::with_name("allow_purchases")
.long("allow-purchases")
.help("Gives Rocat permission to make purchases with Robux."))
.help("Gives Mantle permission to make purchases with Robux."))
)
.subcommand(
SubCommand::with_name("destroy")
.about("Destroys a Rocat deployment")
.about("Destroys a Mantle deployment")
.arg(
Arg::with_name("PROJECT")
.index(1)
.help("The Rocat project: either the path to a directory containing a 'rocat.yml' file or the path to a configuration file. Defaults to the current directory.")
.help("The Mantle project: either the path to a directory containing a 'mantle.yml' file or the path to a configuration file. Defaults to the current directory.")
.takes_value(true)
)
.arg(
Expand All @@ -48,11 +48,11 @@ fn get_app() -> App<'static, 'static> {
)
.subcommand(
SubCommand::with_name("outputs")
.about("Prints a Rocat deployment's outputs to the console or a file in a machine-readable format")
.about("Prints a Mantle deployment's outputs to the console or a file in a machine-readable format")
.arg(
Arg::with_name("PROJECT")
.index(1)
.help("The Rocat project: either the path to a directory containing a 'rocat.yml' file or the path to a configuration file. Defaults to the current directory.")
.help("The Mantle project: either the path to a directory containing a 'mantle.yml' file or the path to a configuration file. Defaults to the current directory.")
.takes_value(true)
)
.arg(
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl fmt::Display for RemoteStateConfig {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"{}/{}/{}.rocat-state.yml",
"{}/{}/{}.mantle-state.yml",
self.region.name(),
self.bucket,
self.key
Expand Down
2 changes: 1 addition & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn parse_project(project: Option<&str>) -> Result<(PathBuf, PathBuf), String> {
let project_path = Path::new(project).to_owned();

let (project_dir, config_file) = if project_path.is_dir() {
(project_path.clone(), project_path.join("rocat.yml"))
(project_path.clone(), project_path.join("mantle.yml"))
} else if project_path.is_file() {
(project_path.parent().unwrap().into(), project_path)
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl ResourceGraph {
)))
} else {
return OperationResult::Skipped(format!(
"Resource would cost {} Robux to create. Give Rocat permission to make purchases with --allow-purchases.",
"Resource would cost {} Robux to create. Give Mantle permission to make purchases with --allow-purchases.",
price
));
}
Expand Down Expand Up @@ -517,7 +517,7 @@ impl ResourceGraph {
)))
} else {
return OperationResult::Skipped(format!(
"Resource would cost {} Robux to update. Give Rocat permission to make purchases with --allow-purchases.",
"Resource would cost {} Robux to update. Give Mantle permission to make purchases with --allow-purchases.",
price
));
}
Expand Down
2 changes: 1 addition & 1 deletion src/roblox_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ impl RobloxApi {
let res = ureq::post("https://data.roblox.com/data/upload/json")
.query("assetTypeId", "13")
.query("name", &file_name)
.query("description", "madewithrocat")
.query("description", "madewithmantle")
.set("Content-Type", "*/*")
.set_auth(AuthType::CookieAndCsrfToken, &mut self.roblox_auth)?
.send_bytes(&data);
Expand Down
6 changes: 3 additions & 3 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct ResourceState {
}

fn get_state_file_path(project_path: &Path) -> PathBuf {
project_path.join(".rocat-state.yml")
project_path.join(".mantle-state.yml")
}

fn get_hash(data: &[u8]) -> String {
Expand Down Expand Up @@ -89,7 +89,7 @@ async fn get_state_from_remote(
let object_res = client
.get_object(rusoto_s3::GetObjectRequest {
bucket: config.bucket.clone(),
key: format!("{}.rocat-state.yml", config.key),
key: format!("{}.mantle-state.yml", config.key),
..Default::default()
})
.await;
Expand Down Expand Up @@ -467,7 +467,7 @@ pub async fn save_state_to_remote(config: &RemoteStateConfig, data: &[u8]) -> Re
let res = client
.put_object(rusoto_s3::PutObjectRequest {
bucket: config.bucket.clone(),
key: format!("{}.rocat-state.yml", config.key),
key: format!("{}.mantle-state.yml", config.key),
body: Some(rusoto_core::ByteStream::from(data.to_vec())),
..Default::default()
})
Expand Down

0 comments on commit 9815564

Please sign in to comment.