aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/installer')
-rw-r--r--crates/shirabe/src/installer/binary_installer.rs14
-rw-r--r--crates/shirabe/src/installer/binary_presence_interface.rs2
-rw-r--r--crates/shirabe/src/installer/installation_manager.rs40
-rw-r--r--crates/shirabe/src/installer/installer_event.rs6
-rw-r--r--crates/shirabe/src/installer/installer_interface.rs6
-rw-r--r--crates/shirabe/src/installer/library_installer.rs24
-rw-r--r--crates/shirabe/src/installer/metapackage_installer.rs16
-rw-r--r--crates/shirabe/src/installer/noop_installer.rs8
-rw-r--r--crates/shirabe/src/installer/package_event.rs8
-rw-r--r--crates/shirabe/src/installer/plugin_installer.rs20
-rw-r--r--crates/shirabe/src/installer/project_installer.rs12
-rw-r--r--crates/shirabe/src/installer/suggested_packages_reporter.rs12
12 files changed, 84 insertions, 84 deletions
diff --git a/crates/shirabe/src/installer/binary_installer.rs b/crates/shirabe/src/installer/binary_installer.rs
index aea0a7c..54e1143 100644
--- a/crates/shirabe/src/installer/binary_installer.rs
+++ b/crates/shirabe/src/installer/binary_installer.rs
@@ -2,19 +2,19 @@
use crate::io::io_interface;
use indexmap::IndexMap;
-use shirabe_external_packages::composer::pcre::preg::{CaptureKey, Preg};
+use shirabe_external_packages::composer::pcre::{CaptureKey, Preg};
use shirabe_php_shim::{
PhpMixed, basename, basename_with_suffix, chmod, dirname, fclose, fgets, file_exists,
file_get_contents, file_put_contents, fopen, is_dir, is_file, is_link, realpath, rmdir, substr,
trim, umask,
};
-use crate::io::io_interface::IOInterface;
-use crate::package::package_interface::PackageInterface;
-use crate::util::filesystem::Filesystem;
-use crate::util::platform::Platform;
-use crate::util::process_executor::ProcessExecutor;
-use crate::util::silencer::Silencer;
+use crate::io::IOInterface;
+use crate::package::PackageInterface;
+use crate::util::Filesystem;
+use crate::util::Platform;
+use crate::util::ProcessExecutor;
+use crate::util::Silencer;
/// Utility to handle installation of package "bin"/binaries
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/binary_presence_interface.rs b/crates/shirabe/src/installer/binary_presence_interface.rs
index c91c3e3..8830bab 100644
--- a/crates/shirabe/src/installer/binary_presence_interface.rs
+++ b/crates/shirabe/src/installer/binary_presence_interface.rs
@@ -1,6 +1,6 @@
//! ref: composer/src/Composer/Installer/BinaryPresenceInterface.php
-use crate::package::package_interface::PackageInterface;
+use crate::package::PackageInterface;
pub trait BinaryPresenceInterface {
fn ensure_binaries_presence(&self, package: &dyn PackageInterface);
diff --git a/crates/shirabe/src/installer/installation_manager.rs b/crates/shirabe/src/installer/installation_manager.rs
index 3b342a9..479e478 100644
--- a/crates/shirabe/src/installer/installation_manager.rs
+++ b/crates/shirabe/src/installer/installation_manager.rs
@@ -4,32 +4,32 @@ use crate::io::io_interface;
use anyhow::Result;
use indexmap::IndexMap;
use shirabe_external_packages::react::promise;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
-use shirabe_external_packages::seld::signal::signal_handler::SignalHandler;
+use shirabe_external_packages::react::promise::PromiseInterface;
+use shirabe_external_packages::seld::signal::SignalHandler;
use shirabe_php_shim::{
InvalidArgumentException, PhpMixed, array_search_mixed, array_splice, array_unshift, count,
http_build_query, json_encode, str_contains, str_replace, strpos, strtolower, ucfirst,
};
-use crate::dependency_resolver::operation::install_operation::InstallOperation;
-use crate::dependency_resolver::operation::mark_alias_installed_operation::MarkAliasInstalledOperation;
-use crate::dependency_resolver::operation::mark_alias_uninstalled_operation::MarkAliasUninstalledOperation;
-use crate::dependency_resolver::operation::operation_interface::OperationInterface;
-use crate::dependency_resolver::operation::uninstall_operation::UninstallOperation;
-use crate::dependency_resolver::operation::update_operation::UpdateOperation;
-use crate::downloader::file_downloader::FileDownloader;
-use crate::event_dispatcher::event_dispatcher::EventDispatcher;
-use crate::installer::binary_presence_interface::BinaryPresenceInterface;
-use crate::installer::installer_interface::InstallerInterface;
-use crate::installer::package_events::PackageEvents;
-use crate::installer::plugin_installer::PluginInstaller;
-use crate::io::console_io::ConsoleIO;
-use crate::io::io_interface::IOInterface;
-use crate::package::alias_package::AliasPackage;
-use crate::package::package_interface::PackageInterface;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
+use crate::dependency_resolver::operation::InstallOperation;
+use crate::dependency_resolver::operation::MarkAliasInstalledOperation;
+use crate::dependency_resolver::operation::MarkAliasUninstalledOperation;
+use crate::dependency_resolver::operation::OperationInterface;
+use crate::dependency_resolver::operation::UninstallOperation;
+use crate::dependency_resolver::operation::UpdateOperation;
+use crate::downloader::FileDownloader;
+use crate::event_dispatcher::EventDispatcher;
+use crate::installer::BinaryPresenceInterface;
+use crate::installer::InstallerInterface;
+use crate::installer::PackageEvents;
+use crate::installer::PluginInstaller;
+use crate::io::ConsoleIO;
+use crate::io::IOInterface;
+use crate::package::AliasPackage;
+use crate::package::PackageInterface;
+use crate::repository::InstalledRepositoryInterface;
+use crate::util::Platform;
use crate::util::r#loop::Loop;
-use crate::util::platform::Platform;
/// Package operation manager.
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/installer_event.rs b/crates/shirabe/src/installer/installer_event.rs
index 20a8b27..6d4bf0b 100644
--- a/crates/shirabe/src/installer/installer_event.rs
+++ b/crates/shirabe/src/installer/installer_event.rs
@@ -1,9 +1,9 @@
//! ref: composer/src/Composer/Installer/InstallerEvent.php
use crate::composer::Composer;
-use crate::dependency_resolver::transaction::Transaction;
-use crate::event_dispatcher::event::Event;
-use crate::io::io_interface::IOInterface;
+use crate::dependency_resolver::Transaction;
+use crate::event_dispatcher::Event;
+use crate::io::IOInterface;
#[derive(Debug)]
pub struct InstallerEvent {
diff --git a/crates/shirabe/src/installer/installer_interface.rs b/crates/shirabe/src/installer/installer_interface.rs
index a9e8d9b..5370364 100644
--- a/crates/shirabe/src/installer/installer_interface.rs
+++ b/crates/shirabe/src/installer/installer_interface.rs
@@ -1,8 +1,8 @@
//! ref: composer/src/Composer/Installer/InstallerInterface.php
-use crate::package::package_interface::PackageInterface;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
+use crate::package::PackageInterface;
+use crate::repository::InstalledRepositoryInterface;
+use shirabe_external_packages::react::promise::PromiseInterface;
pub trait InstallerInterface: std::fmt::Debug {
fn supports(&self, package_type: &str) -> bool;
diff --git a/crates/shirabe/src/installer/library_installer.rs b/crates/shirabe/src/installer/library_installer.rs
index fc79bdd..0b4ba78 100644
--- a/crates/shirabe/src/installer/library_installer.rs
+++ b/crates/shirabe/src/installer/library_installer.rs
@@ -3,24 +3,24 @@
use std::any::Any;
use anyhow::Result;
-use shirabe_external_packages::composer::pcre::preg::Preg;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
+use shirabe_external_packages::composer::pcre::Preg;
+use shirabe_external_packages::react::promise::PromiseInterface;
use shirabe_php_shim::{
InvalidArgumentException, LogicException, is_link, preg_quote, realpath, rmdir, rtrim, strpos,
};
use crate::composer::Composer;
-use crate::downloader::download_manager::DownloadManager;
-use crate::installer::binary_installer::BinaryInstaller;
-use crate::installer::binary_presence_interface::BinaryPresenceInterface;
-use crate::installer::installer_interface::InstallerInterface;
-use crate::io::io_interface::IOInterface;
-use crate::package::package_interface::PackageInterface;
+use crate::downloader::DownloadManager;
+use crate::installer::BinaryInstaller;
+use crate::installer::BinaryPresenceInterface;
+use crate::installer::InstallerInterface;
+use crate::io::IOInterface;
+use crate::package::PackageInterface;
use crate::partial_composer::PartialComposer;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
-use crate::util::filesystem::Filesystem;
-use crate::util::platform::Platform;
-use crate::util::silencer::Silencer;
+use crate::repository::InstalledRepositoryInterface;
+use crate::util::Filesystem;
+use crate::util::Platform;
+use crate::util::Silencer;
/// Package installation manager.
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/metapackage_installer.rs b/crates/shirabe/src/installer/metapackage_installer.rs
index e30ef85..2c23229 100644
--- a/crates/shirabe/src/installer/metapackage_installer.rs
+++ b/crates/shirabe/src/installer/metapackage_installer.rs
@@ -1,15 +1,15 @@
//! ref: composer/src/Composer/Installer/MetapackageInstaller.php
-use crate::dependency_resolver::operation::install_operation::InstallOperation;
-use crate::dependency_resolver::operation::uninstall_operation::UninstallOperation;
-use crate::dependency_resolver::operation::update_operation::UpdateOperation;
-use crate::installer::installer_interface::InstallerInterface;
+use crate::dependency_resolver::operation::InstallOperation;
+use crate::dependency_resolver::operation::UninstallOperation;
+use crate::dependency_resolver::operation::UpdateOperation;
+use crate::installer::InstallerInterface;
+use crate::io::IOInterface;
use crate::io::io_interface;
-use crate::io::io_interface::IOInterface;
-use crate::package::package_interface::PackageInterface;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
+use crate::package::PackageInterface;
+use crate::repository::InstalledRepositoryInterface;
use anyhow::Result;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
+use shirabe_external_packages::react::promise::PromiseInterface;
use shirabe_php_shim::InvalidArgumentException;
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/noop_installer.rs b/crates/shirabe/src/installer/noop_installer.rs
index 8180402..360f962 100644
--- a/crates/shirabe/src/installer/noop_installer.rs
+++ b/crates/shirabe/src/installer/noop_installer.rs
@@ -1,9 +1,9 @@
//! ref: composer/src/Composer/Installer/NoopInstaller.php
-use crate::installer::installer_interface::InstallerInterface;
-use crate::package::package_interface::PackageInterface;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
+use crate::installer::InstallerInterface;
+use crate::package::PackageInterface;
+use crate::repository::InstalledRepositoryInterface;
+use shirabe_external_packages::react::promise::PromiseInterface;
use shirabe_php_shim::InvalidArgumentException;
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/package_event.rs b/crates/shirabe/src/installer/package_event.rs
index 8b6fbbe..0268721 100644
--- a/crates/shirabe/src/installer/package_event.rs
+++ b/crates/shirabe/src/installer/package_event.rs
@@ -1,10 +1,10 @@
//! ref: composer/src/Composer/Installer/PackageEvent.php
use crate::composer::Composer;
-use crate::dependency_resolver::operation::operation_interface::OperationInterface;
-use crate::event_dispatcher::event::Event;
-use crate::io::io_interface::IOInterface;
-use crate::repository::repository_interface::RepositoryInterface;
+use crate::dependency_resolver::operation::OperationInterface;
+use crate::event_dispatcher::Event;
+use crate::io::IOInterface;
+use crate::repository::RepositoryInterface;
use indexmap::IndexMap;
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/plugin_installer.rs b/crates/shirabe/src/installer/plugin_installer.rs
index 2ec8cb9..dff57d8 100644
--- a/crates/shirabe/src/installer/plugin_installer.rs
+++ b/crates/shirabe/src/installer/plugin_installer.rs
@@ -1,17 +1,17 @@
//! ref: composer/src/Composer/Installer/PluginInstaller.php
-use crate::installer::binary_installer::BinaryInstaller;
-use crate::installer::installer_interface::InstallerInterface;
-use crate::installer::library_installer::LibraryInstaller;
-use crate::io::io_interface::IOInterface;
-use crate::package::package_interface::PackageInterface;
+use crate::installer::BinaryInstaller;
+use crate::installer::InstallerInterface;
+use crate::installer::LibraryInstaller;
+use crate::io::IOInterface;
+use crate::package::PackageInterface;
use crate::partial_composer::PartialComposer;
-use crate::plugin::plugin_manager::PluginManager;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
-use crate::util::filesystem::Filesystem;
-use crate::util::platform::Platform;
+use crate::plugin::PluginManager;
+use crate::repository::InstalledRepositoryInterface;
+use crate::util::Filesystem;
+use crate::util::Platform;
use anyhow::Result;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
+use shirabe_external_packages::react::promise::PromiseInterface;
use shirabe_php_shim::{LogicException, PhpMixed, UnexpectedValueException, empty};
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/project_installer.rs b/crates/shirabe/src/installer/project_installer.rs
index 6f794af..ad2c3a6 100644
--- a/crates/shirabe/src/installer/project_installer.rs
+++ b/crates/shirabe/src/installer/project_installer.rs
@@ -1,11 +1,11 @@
//! ref: composer/src/Composer/Installer/ProjectInstaller.php
-use crate::downloader::download_manager::DownloadManager;
-use crate::installer::installer_interface::InstallerInterface;
-use crate::package::package_interface::PackageInterface;
-use crate::repository::installed_repository_interface::InstalledRepositoryInterface;
-use crate::util::filesystem::Filesystem;
-use shirabe_external_packages::react::promise::promise_interface::PromiseInterface;
+use crate::downloader::DownloadManager;
+use crate::installer::InstallerInterface;
+use crate::package::PackageInterface;
+use crate::repository::InstalledRepositoryInterface;
+use crate::util::Filesystem;
+use shirabe_external_packages::react::promise::PromiseInterface;
use shirabe_php_shim::InvalidArgumentException;
#[derive(Debug)]
diff --git a/crates/shirabe/src/installer/suggested_packages_reporter.rs b/crates/shirabe/src/installer/suggested_packages_reporter.rs
index 8248f5f..fc4165a 100644
--- a/crates/shirabe/src/installer/suggested_packages_reporter.rs
+++ b/crates/shirabe/src/installer/suggested_packages_reporter.rs
@@ -1,12 +1,12 @@
//! ref: composer/src/Composer/Installer/SuggestedPackagesReporter.php
-use crate::io::io_interface::IOInterface;
-use crate::package::package_interface::PackageInterface;
-use crate::repository::installed_repository::InstalledRepository;
-use crate::repository::repository_interface::RepositoryInterface;
+use crate::io::IOInterface;
+use crate::package::PackageInterface;
+use crate::repository::InstalledRepository;
+use crate::repository::RepositoryInterface;
use indexmap::IndexMap;
-use shirabe_external_packages::composer::pcre::preg::Preg;
-use shirabe_external_packages::symfony::component::console::formatter::output_formatter::OutputFormatter;
+use shirabe_external_packages::composer::pcre::Preg;
+use shirabe_external_packages::symfony::component::console::formatter::OutputFormatter;
#[derive(Debug)]
pub struct SuggestedPackagesReporter {