-
Notifications
You must be signed in to change notification settings - Fork 1
feat(dash-command): add EasyEngine version to server data #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -129,11 +129,14 @@ public function init( $args, $assoc_args ) { | |||||||||||||||||||||||||||||||||
| EE::launch( 'echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbESQqRcGdwnn/u1BkDCD9rDiFqgDhTHBHIIasaDpWV EasyEngine" >> /root/.ssh/authorized_keys' ); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| $server_data = [ | ||||||||||||||||||||||||||||||||||
| "hostname" => $hostname, | ||||||||||||||||||||||||||||||||||
| "public_ipv4" => $public_ipv4, | ||||||||||||||||||||||||||||||||||
| "organization" => $organization, | ||||||||||||||||||||||||||||||||||
| ]; | ||||||||||||||||||||||||||||||||||
| $ee_version = EE_VERSION; | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| $server_data = [ | ||||||||||||||||||||||||||||||||||
| "hostname" => $hostname, | ||||||||||||||||||||||||||||||||||
| "public_ipv4" => $public_ipv4, | ||||||||||||||||||||||||||||||||||
| "organization" => $organization, | ||||||||||||||||||||||||||||||||||
| "ee_version" => $ee_version, | ||||||||||||||||||||||||||||||||||
| ]; | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+132
to
+139
|
||||||||||||||||||||||||||||||||||
| $ee_version = EE_VERSION; | |
| $server_data = [ | |
| "hostname" => $hostname, | |
| "public_ipv4" => $public_ipv4, | |
| "organization" => $organization, | |
| "ee_version" => $ee_version, | |
| ]; | |
| $ee_version = EE_VERSION; | |
| $server_data = [ | |
| "hostname" => $hostname, | |
| "public_ipv4" => $public_ipv4, | |
| "organization" => $organization, | |
| "ee_version" => $ee_version, | |
| ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intermediate variable $ee_version is unnecessary. The EE_VERSION constant can be directly assigned to the array key, which would simplify the code and follow the pattern used by the other fields in the array (hostname, public_ipv4, organization).