Skip to content

Commit 852ae4a

Browse files
authored
Merge pull request #1192 from cloudbees-oss/rename-to-main
[chore] better disambiguation with Commit GraphCollector
2 parents 6d64f0e + 28185c4 commit 852ae4a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/main/java/com/launchableinc/ingest/commits/CommitIngester.java renamed to src/main/java/com/launchableinc/ingest/commits/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.kohsuke.args4j.Option;
1818

1919
/** Driver for {@link CommitGraphCollector}. */
20-
public class CommitIngester {
20+
public class Main {
2121
@Argument(required = true, metaVar = "NAME", usage = "Uniquely identifies this repository within the workspace", index = 0)
2222
public String name;
2323

@@ -60,10 +60,10 @@ public class CommitIngester {
6060

6161
@VisibleForTesting String launchableToken = null;
6262

63-
public CommitIngester() throws CmdLineException, MalformedURLException {}
63+
public Main() throws CmdLineException, MalformedURLException {}
6464

6565
public static void main(String[] args) throws Exception {
66-
CommitIngester ingester = new CommitIngester();
66+
Main ingester = new Main();
6767
CmdLineParser parser = new CmdLineParser(ingester);
6868
try {
6969
parser.parseArgument(args);

src/test/java/com/launchableinc/ingest/commits/AllTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@RunWith(Suite.class)
88
@SuiteClasses({
99
CommitGraphCollectorTest.class,
10-
CommitIngesterTest.class,
10+
MainTest.class,
1111
FileChunkStreamerTest.class,
1212
SSLBypassTest.class,
1313
ProgressReportingConsumerTest.class

src/test/java/com/launchableinc/ingest/commits/CommitIngesterTest.java renamed to src/test/java/com/launchableinc/ingest/commits/MainTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.mockserver.junit.MockServerRule;
2020

2121
@RunWith(JUnit4.class)
22-
public class CommitIngesterTest {
22+
public class MainTest {
2323
@Rule public TemporaryFolder tmp = new TemporaryFolder();
2424
@Rule public MockServerRule mockServerRule = new MockServerRule(this);
2525
private MockServerClient mockServerClient;
@@ -63,14 +63,14 @@ public void specifySubmodule() throws Exception {
6363
return response().withBody("OK");
6464
});
6565

66-
CommitIngester commitIngester = new CommitIngester();
66+
Main main = new Main();
6767
InetSocketAddress addr = mockServerClient.remoteAddress();
6868
// Specify submodule as the repository. JGit cannot open this directly, so the code should open
6969
// the main repository first, then open the submodule.
70-
commitIngester.repo = new File(mainrepoDir, "sub");
71-
commitIngester.url =
70+
main.repo = new File(mainrepoDir, "sub");
71+
main.url =
7272
new URL(String.format("http://%s:%s/intake/", addr.getHostString(), addr.getPort()));
73-
commitIngester.launchableToken = "v1:testorg/testws:dummy-token";
74-
commitIngester.run();
73+
main.launchableToken = "v1:testorg/testws:dummy-token";
74+
main.run();
7575
}
7676
}

0 commit comments

Comments
 (0)