-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: wip: Refactor
FusionClient
into TowerClient
Signed-off-by: Alberto Miranda <[email protected]>
- Loading branch information
1 parent
4fae0b6
commit 09138e4
Showing
14 changed files
with
131 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
204 changes: 0 additions & 204 deletions
204
modules/nextflow/src/main/groovy/nextflow/fusion/FusionClient.groovy
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,26 +17,16 @@ | |
|
||
package nextflow.fusion | ||
|
||
import groovy.util.logging.Slf4j | ||
import nextflow.Session | ||
import nextflow.plugin.Plugins | ||
|
||
import nextflow.plugin.Plugins | ||
/** | ||
* Provider strategy for {@link FusionEnv} | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
@Slf4j | ||
class FusionEnvProvider { | ||
|
||
// The client used to interact with Platform for Fusion-related operations | ||
final private FusionClient client | ||
|
||
FusionEnvProvider(Session session) { | ||
this.client = new FusionClient(session) | ||
} | ||
|
||
Map<String, String> getEnvironment(String scheme) { | ||
Map<String,String> getEnvironment(String scheme) { | ||
final config = FusionConfig.getConfig() | ||
final list = Plugins.getExtensions(FusionEnv) | ||
final result = new HashMap<String,String>() | ||
|
@@ -54,14 +44,6 @@ class FusionEnvProvider { | |
result.FUSION_LOG_LEVEL = config.logLevel() | ||
if( config.cacheSize() ) | ||
result.FUSION_CACHE_SIZE = "${config.cacheSize().toMega()}M" | ||
// license settings | ||
try { | ||
result.FUSION_LICENSE_TOKEN = client.getLicenseToken() | ||
} catch( Exception e ) { | ||
// TODO(amiranda): This should actually fail, but since fusion licensing is not mandatory yet, we'll just | ||
// log a warning and continue. | ||
log.warn("Error retrieving Fusion license information: ${e.message}") | ||
} | ||
return result | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
modules/nextflow/src/main/groovy/nextflow/fusion/PlatformConfig.groovy
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
modules/nextflow/src/main/groovy/nextflow/fusion/exception/BadResponseException.groovy
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
modules/nextflow/src/main/groovy/nextflow/fusion/exception/UnauthorizedException.groovy
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
modules/nextflow/src/main/groovy/nextflow/fusion/exchange/LicenseTokenRequest.groovy
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.