Skip to content

Commit

Permalink
refactor(aws): make transformScalingPolicy method public (#4261)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry authored Oct 13, 2017
1 parent d85c618 commit 6a8bbbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/scripts/modules/amazon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { AMAZON_MODULE } from './aws.module';
export * from './aws.settings';

export * from './domain';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AwsServerGroupTransformer {
policyOrStepAdjustment.absAdjustment = Math.abs(policyOrStepAdjustment.scalingAdjustment);
}

private transformScalingPolicy(policy: IScalingPolicy): IScalingPolicyView {
public transformScalingPolicy(policy: IScalingPolicy): IScalingPolicyView {
const view: IScalingPolicyView = Object.assign({}, policy) as IScalingPolicyView;
const upperBoundSorter = (a: IStepAdjustmentView, b: IStepAdjustmentView) => b.metricIntervalUpperBound - a.metricIntervalUpperBound,
lowerBoundSorter = (a: IStepAdjustmentView, b: IStepAdjustmentView) => a.metricIntervalLowerBound - b.metricIntervalLowerBound;
Expand Down

0 comments on commit 6a8bbbc

Please sign in to comment.