-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'spec_helper' | ||
|
||
module WhiteLabel | ||
describe Customization do | ||
describe '#customization?' do | ||
it 'exists and returns true' do | ||
expect(Customization.customization?).to eq(true) | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
package software.amazon.smithy.ruby.codegen.generators; | ||
|
||
import java.util.logging.Logger; | ||
import software.amazon.smithy.codegen.core.directed.ContextualDirective; | ||
import software.amazon.smithy.ruby.codegen.GenerationContext; | ||
import software.amazon.smithy.ruby.codegen.RubySettings; | ||
import software.amazon.smithy.utils.SmithyInternalApi; | ||
|
||
@SmithyInternalApi | ||
public class CustomizationsGenerator extends RubyGeneratorBase { | ||
private static final Logger LOGGER = | ||
Logger.getLogger(CustomizationsGenerator.class.getName()); | ||
|
||
public CustomizationsGenerator(ContextualDirective<GenerationContext, RubySettings> directive) { | ||
super(directive); | ||
} | ||
|
||
@Override | ||
protected String getModule() { | ||
return "Customizations"; | ||
} | ||
|
||
public void render() { | ||
write(writer -> { | ||
writer | ||
.write("# frozen_string_literal: true") | ||
.write(""); | ||
}); | ||
LOGGER.fine("Wrote customizations to " + rbFile()); | ||
} | ||
} |